ConvertToDecimal Method (Double) |
Converts the value of the specified double-precision floating-point number to an equivalent decimal number.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public static decimal ToDecimal(
double value
)
Parameters
- value
- Type: SystemDouble
The double-precision floating-point number to convert.
Return Value
Type:
DecimalA decimal number that is equivalent to
value.
Exceptions Exception | Condition |
---|
OverflowException | value is greater than MaxValue or less than MinValue. |
See Also