Converts a String to a Double.
[Visual Basic] Overloads Public Shared Function ToDouble( _ ByVal value As String _ ) As Double [C#] public static double ToDouble( string value ); [C++] public: static double ToDouble( String* value ); [JScript] public static function ToDouble( value : String ) : double;
The Double with the value represented by value.
Exception Type | Condition |
---|---|
ArgumentException | value is null. |
FormatException | value does not contain a representation that can be converted to a Double using the Parse(String) method implemented by that type. |
OverflowException | value represents a number that is less than Double.MinValue or greater than Double.MaxValue. |
Implementation is the same as FromString.
Convert Class | Convert Members | System Namespace | Convert.ToDouble Overload List