[]
Converts a double value to a string. Note that a separate method ToString(float, int) exists for converting float values, separate methods are needed to avoid rounding errors that may occur when converting doubles to floats and vice versa.
The value to convert. The count of digits after decimal point.public static string ToString(double value, int decimalPlaces)
Public Shared Function ToString(value As Double, decimalPlaces As Integer) As String
Type | Description |
---|---|
string |
Converts a float value to a string. Note that a separate method ToString(double, int) exists for converting double values, separate methods are needed to avoid rounding errors that may occur when converting doubles to floats and vice versa.
public static string ToString(float value, int decimalPlaces)
Public Shared Function ToString(value As Single, decimalPlaces As Integer) As String
Type | Name | Description |
---|---|---|
float | value | The value to convert. |
int | decimalPlaces | The count of digits after decimal point. |
Type | Description |
---|---|
string |
public override string ToString()
Public Overrides Function ToString() As String
Type | Description |
---|---|
string |