NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Convert.ToSingle (Double)

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;

Parameters

value
The number to be converted.

Return Value

Returns the value as a Single

Exceptions

Exception Type Condition
OverflowException is thrown if value is greater than Single.MaxValue or less than Single.MinValue.

See Also

Convert Class | Convert Members | System Namespace | Convert.ToSingle Overload List