how to convert string to double?

  • Thread starter Thread starter cindy liu
  • Start date Start date
In .Net, how to convert a string to a double?

Convert.ToDouble(string)

Converts the specified String representation of a number to an
equivalent double-precision floating point number.

[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;

Parameters
value
A String containing a number to convert.

Return Value
A double-precision floating point number equivalent to the value of
value.
 
Back
Top