ToString(Single,Int32) Method
In This Topic
Converts a float value to a string. Note that a separate method
ToString(Double,Int32) exists for converting double values, separate methods are needed to avoid rounding errors that may occur when converting doubles to floats and vice versa.
Syntax
'Declaration
Public Overloads Shared Function ToString( _
ByVal As System.Single, _
ByVal As System.Integer _
) As System.String
public static System.string ToString(
System.float ,
System.int
)
Parameters
- value
- The value to convert.
- decimalPlaces
- The count of digits after decimal point.
See Also