DoubleConverter
A class to allow the conversion of doubles to string representations of their exact decimal values. The implementation aims for readability over efficiency.
Courtesy of @JonSkeet http://www.yoda.arachsys.com/csharp/DoubleConverter.cs
Assembly: ServiceStack.Text.dll
View Source
Declaration
public class DoubleConverter
Methods
ToExactString(Double)
Converts the given double to a string representation of its exact decimal value.
View Source
Declaration
public static string ToExactString(double d)
Returns
System.String
: A string representation of the double's exact decimal value.
Parameters
Type | Name | Description |
---|---|---|
System.Double | d | The double to convert. |
|