I'm trying to split a rather long float (a GPS coordinate) into several different floats, and am trying to work my head around how to do this...
An example looks like this:
52.502411...
GPS is split into HHMMSS, so I need to separate the first two digits (which is easy by converting it into an int), then the first two after the decimal point, then the 3rd and 4th after the decimal point... ie
float HH = 52
float MM = 50
float SS = 24
Anyone have recommendations on how to do this?
I thought to convert it to a String, as I seem to recall some method to return certain indices of a String, but can't remember what it's called... browsed the Reference but can't seem to find it...
Thanks in advance...
~ J
1