I have a string in the following format: "R: 625.5m E:-32768m"
What's the most efficient way to pull out the 625.5?
I have a string in the following format: "R: 625.5m E:-32768m"
What's the most efficient way to pull out the 625.5?
Your best bet is to use sscanf to read formatted information from the string.
sscanf(mystr, "R: %f", &myFloat);