NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Decimal Constructor (Double)

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
);

Parameters

value
The value to represent as a Decimal.

Exceptions

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).

Remarks

Double initializes a Decimal from an 8-byte, double-precision floating-point number.

See Also

Decimal Structure | Decimal Members | System Namespace | Decimal Constructor Overload List