You're asking how to convert a String into a double. Check out the Double API for useful functions.