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!

String.ToDouble

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;

Return Value

The Double with the value represented by value.

Exceptions

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.

Remarks

The ToDoubel implementation is the same as Parse and ToDouble. (In addition information, see Double, Convert and Value.)

See Also

String Class | String Members | System Namespace | Double