Converts a Decimal to a Double with a specified format.
[Visual Basic] Overloads Public Shared Function ToDouble( _ ByVal d As Decimal _ ) As Double [C#] public static double ToDouble( Decimal d ); [C++] public: static double ToDouble( Decimal d ); [JScript] public static function ToDouble( d : Decimal ) : double;
The result of converting the argument to a Double.
The ToDouble method returns the specified parameter as an 8-byte double precision floating-point number.
Since a Double has fewer significant digits than a Decimal, this operation may produce round-off errors.
This method implements IConvertible, which replaced IValue. This method is used to obtain the type code for a specified object. (See Convert and Value for more information about conversions; see the Type for more information about types.)
Decimal Structure | Decimal Members | System Namespace | Decimal.ToDouble Overload List