String to double

If you can change to using C style strings you can use the strtod() function. Dogma on the forum here is to avoid the String class like the plague anyway. If you are wedded to String, then you can use this as an intermediary step.