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 _
public NullableDecimal(
   float value


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


Exception TypeCondition
OverflowExceptionvalue is greater than MaxValue or less than MinValue


value is NaN, PositiveInfinity, or NegativeInfinity.

See Also

NullableDecimal Class | NullableTypes Namespace | NullableDecimal Constructor Overload List