Convert.ToDouble Method (String) |
Converts the specified string representation of a number to an equivalent double-precision floating-point number.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public static double ToDouble(
string value
)
Parameters
- value
- Type: System.String
A string that contains the number to convert.
Return Value
Type:
DoubleA double-precision floating-point number that is equivalent to the number in
value, or 0 (zero) if
value is null.
Exceptions Exception | Condition |
---|
FormatException | value is not a number in a valid format. |
OverflowException | value represents a number that is less than MinValue or greater than MaxValue. |
See Also