FloatExtensionsToRoundtripString Method
Returns a culture-invariant
String representation of the given
Single value,
from which the original value can be parsed without losing any information.
Namespace: KGySoft.CoreLibrariesAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0
public static string ToRoundtripString(
this float value
)
<ExtensionAttribute>
Public Shared Function ToRoundtripString (
value As Single
) As String
public:
[ExtensionAttribute]
static String^ ToRoundtripString(
float value
)
[<ExtensionAttribute>]
static member ToRoundtripString :
value : float32 -> string
- value Single
- A Single value to be converted to String.
StringA
Single value, from which the original value can be parsed without losing any information.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).
The result of this method can be parsed by
Float.Parse; however, to retrieve exactly the
original value, including a negative zero value, use the
Parse String extension method instead.