I would like to know how to convert a string containing digits to a double.
+14
A:
>>> x = "2342.34"
>>> float(x)
2342.3400000000001
There you go. Use float (which is almost always a C double).
Mongoose
2009-01-27 05:49:18
Or, more specifically, Python floats are C doubles.
Aaron Gallagher
2009-01-27 05:54:02