System Namespace Convert Class
Converts the value of a given double-precision floating point number to an equivalent single-precision floating point number.
[ VB ]
Overloads Public Shared Function ToSingle ( _
ByVal value As Double _
) As Single
[ C# ]
public static float ToSingle (
double value
);
[ C++ ]
public: static float ToSingle (
double value
);
[ JScript ]
public static function ToSingle (
value : double
) : float;
- value
- A double-precision floating point number.
A single-precision floating point number equivalent of value.
value is rounded using rounding to nearest. For example, when rounded to two decimals, the value 2.345 becomes 2.34 and the value 2.355 becomes 2.36.
Convert Members Convert.ToSingle Overload List Double