Converts a string to a Double.
[Visual Basic] Overridable Public Function ToDouble() As Double [C#] public virtual double ToDouble(); [C++] public: virtual double ToDouble(); [JScript] public function ToDouble() : double;
The Double with the value represented by value.
Exception Type | Condition |
---|---|
ArgumentException | If the string is null. |
FormatException | If the string does not contain a representation that can be converted to a Double using the Parse(String) method implemented by that type. |
OverflowException | If the string represents a number that is less than Double.MaxValue or greater than Double.MinValue. |
The ToDoubel implementation is the same as Parse and ToDouble. (In addition information, see Double, Convert and Value.)