Converts a string to a double-precision floating point number.
[Visual Basic] 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-precision floating point value represented by the string.
Exception Type | Condition |
---|---|
XmlException | If value is null or a reference to a string that does not contain a valid decimal representation of a double-precision floating point number. |
The value parameter must be a non-null reference to a string that contains a well-formed decimal representation of a double-precision floating point number. The formats accepted by this method correspond to those accepted by the FromString method.
XmlString Class | XmlString Members | System.Xml Namespace | FromDouble