How to change coordinate data from String to Float

  1. My goal is: Calculate distance between 2 coordinates from the device itself, and doing so needs the coordinates to be converted to float to be able to calculate
  2. My actions are: used parseFloat, haven’t found any other way to do it
  3. The result I see is: the coordinates are still in String
  4. My expectation & question is: Any idea how to convert this String data to Float?

As this post is 2 weeks old, I assume you figured out the answer but for anyone who is wondering, there are C language functions to do this, and other ways as well. For example, see:

http://www.cplusplus.com/reference/cstdlib/strtof/