Share via


Decimal Constructor (Double)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Initializes a new instance of Decimal to the value of the specified double-precision floating-point number.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

Syntax

'Declaration
Public Sub New ( _
    value As Double _
)
public Decimal(
    double value
)
public:
Decimal(
    double value
)
new : 
        value:float -> Decimal
public function decimal(
    value : double
)

Parameters

Remarks

This constructor rounds value to 15 significant digits using rounding to nearest. This is done even if the number has more than 15 digits and the less significant digits are zero.

.NET Framework Security

See Also

Reference

Decimal Structure

Decimal Overload

System Namespace