RoundTripExtensionsToStringRoundTrip Method (Single) |
Correctly convert a float value to a string for round-trip purposes.
Namespace:
Demo3D.Common
Assembly:
Demo3D.Common (in Demo3D.Common.dll) Version: 18.04.00
Syntaxpublic static string ToStringRoundTrip(
this float v
)
Parameters
- v
- Type: SystemSingle
Float value to convert to a string.
Return Value
Type:
StringRound-trip string version of float value
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Single. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
RemarksSee MSDN "Notes to Callers".https://docs.microsoft.com/en-us/dotnet/api/system.double.tostring?redirectedfrom=MSDN&view=netframework-4.7.2#System_Double_ToString_System_String_
See Also