Initializes a new instance of the Decimal class to a value specified by a Double.
[Visual Basic] Overloads Public Sub New( _ ByVal value As Double _ ) [C#] public Decimal( double value ); [C++] public: Decimal( double value ); [JScript] public function Decimal( value : double );
Exception Type | Condition |
---|---|
OverflowException | If the Decimal is outside the Decimal range |
OverflowException | If the Decimal is positive or negative infinity or not a number (NaN). |
Double initializes a Decimal from an 8-byte, double-precision floating-point number.
Decimal Structure | Decimal Members | System Namespace | Decimal Constructor Overload List