NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

XmlString.ToDouble

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;

Parameters

value
The string to convert.

Return Value

The double-precision floating point value represented by the string.

Exceptions

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.

Remarks

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.

See Also

XmlString Class | XmlString Members | System.Xml Namespace | FromDouble