NullableTypes Class Library

NullableSingle Constructor (Double)

Initializes a new instance of the NullableSingle structure.

[Visual Basic]
Overloads Public Sub New( _
   ByVal value As Double _
)
[C#]
public NullableSingle(
   double value
);

Parameters

value
A Double value to be stored in the Value property of the new NullableSingle structure.

Remarks

The Doublevalue 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 | NullableSingle Constructor Overload List