NullableTypes Class Library

NullableDouble.ToNullableSingle Method 

Converts this NullableDouble instance to a NullableSingle.

[Visual Basic]
Public Function ToNullableSingle() As NullableSingle
[C#]
public NullableSingle ToNullableSingle();

Return Value

A NullableSingle that is Null if this NullableDouble is Null otherwise a NullableSingle whose Value equals the Value of this instance.

Remarks

The Double value is rounded to the nearest Single value. If the Double value is too small to represent as a Single, the result becomes positive zero or negative zero. If the Double value is too large to represent as a Single, the result becomes positive infinity or negative infinity. If the Double value is NaN, the result is also NaN.

See Also

NullableDouble Class | NullableTypes Namespace