NullableTypes Class Library

NullableDecimal Constructor (Single)

Initializes a new instance of the NullableDecimal structure using the specified floating-point number.

[Visual Basic]
Overloads Public Sub New( _
   ByVal value As Single _
)
[C#]
public NullableDecimal(
   float value
);

Parameters

value
A floating-point number value to be stored in the Value property of the new NullableDecimal structure.

Exceptions

Exception TypeCondition
OverflowExceptionvalue is greater than MaxValue or less than MinValue

-or-

value is NaN, PositiveInfinity, or NegativeInfinity.

See Also

NullableDecimal Class | NullableTypes Namespace | NullableDecimal Constructor Overload List