NullableTypes Class Library

NullableSingle Explicit NullableTypes.NullableDouble to NullableTypes.NullableSingle Conversion 

Converts the NullableDouble parameter to a NullableSingle structure.

[Visual Basic]
returnValue = NullableSingle.op_Explicit(x)
[C#]
public static explicit operator NullableSingle(
   NullableDouble x
);

Parameters

x
A NullableDouble to be converted to a NullableSingle structure.

Return Value

Null if x is Null otherwise a new NullableSingle structure constructed from the Value of x.

Remarks

The xNullableDouble 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

NullableSingle Class | NullableTypes Namespace