Click or drag to resize

RoundTripExtensionsToStringRoundTrip(Single) Method

Correctly convert a float value to a string for round-trip purposes.

Namespace: Demo3D.Common
Assembly: Demo3D.Common (in Demo3D.Common.dll) Version: 19.01.00
Syntax
C#
public static string ToStringRoundTrip(
	this float v
)

Parameters

v  Single
Float value to convert to a string.

Return Value

String
Round-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).
See Also