Initializes a new instance of the Decimal class to a value specified by a Single.
[Visual Basic] Overloads Public Sub New( _ ByVal value As Single _ ) [C#] public Decimal( float value ); [C++] public: Decimal( float value ); [JScript] public function Decimal( value : float );
Exception Type | Condition |
---|---|
OverflowException | is thrown if the resulting value is outside the Decimal range, or if value is Not a Number (NaN) or positive or negative infinity. |
Decimal Structure | Decimal Members | System Namespace | Decimal Constructor Overload List