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