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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top