Converts a Double to a Single.
[Visual Basic] 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;
Returns the value as a Single
Exception Type | Condition |
---|---|
OverflowException | is thrown if value is greater than Single.MaxValue or less than Single.MinValue. |
Convert Class | Convert Members | System Namespace | Convert.ToSingle Overload List