Mono Class Library: System.Convert Overview | Members

System.Convert.ToSingle Method

Converts a double to a float . [Edit]

public static float ToSingle (double value)

Parameters

value
The double value to be converted. [Edit]

Returns

value as a float. [Edit]

Exceptions

TypeReason
OverflowExceptionvalue is greater than float.MaxValue or less than float.MinValue. [Edit]

Remarks

Documentation for this section has not yet been entered. [Edit]

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0