Convert.ToDecimal Method (Double)
Converts the value of the specified double-precision floating-point number to an equivalent decimal number.
Assembly: mscorlib (in mscorlib.dll)
The Decimal value returned by this method contains a maximum of 15 significant digits. If the value parameter contains more than 15 significant digits, it is rounded using rounding to nearest. The following example illustrates how the method uses rounding to nearest to return a Decimal value with 15 significant digits.
Available since 8
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 8.1