System Namespace Convert Class
Converts the value of a given double-precision floating point number to an equivalent Decimal number.
[ VB ]
Overloads Public Shared Function ToDecimal ( _
ByVal value As Double _
) As Decimal
[ C# ]
public static decimal ToDecimal (
double value
);
[ C++ ]
public: static Decimal ToDecimal (
double value
);
[ JScript ]
public static function ToDecimal (
value : double
) : Decimal;
- value
- A double-precision floating point number.
A Decimal number equivalent of value. The Decimal contains 15 significant digits and is rounded using rounding to nearest. For example, when rounded to two decimals, the value 2.345 becomes 2.34 and the value 2.355 becomes 2.36.
Convert Members Convert.ToDecimal Overload List Double