- 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
- My actions are: used parseFloat, haven’t found any other way to do it
- The result I see is: the coordinates are still in String
- 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: