Decimal Constructor (Double)
Initializes a new instance of Decimal to the value of the specified double-precision floating-point number.
Namespace:
SystemAssembly: Bridge (in Bridge.dll)
Syntax
[TemplateAttribute] public Decimal( double d )
<TemplateAttribute> _ Public Sub New ( _ d As Double _ )
[TemplateAttribute] public: Decimal( double^ d )
Parameters
- d
- Type: System..::..Double
Exceptions
Exception | Condition |
---|---|
System..::..OverflowException | value is greater than MaxValue or less than MinValue.-or- value is NaN, PositiveInfinity, or NegativeInfinity. |