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 (Single)

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

Parameters

value
The value to represent as a Decimal.

Exceptions

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.

See Also

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