nerdegutta
Senior Member
Hi.
First post, so be gentle.
I need help with some calculations. I got this number:
58.217088
b0 = 5, b1 = 8, b2 = 2, b3=1 and so on.
I want to trunc the 58.
Multiply the remainder with 0,6
And add 58 back, something like this:
58.217088 - 58 = 0,217088
0,217088 * 0,6 = 0,361813
58+0,361813 = 58,361813
How can I do this with my 14M2, or 20M2?
Yes, the numbers are from the $GPGGA NMEA sentence, and are Latitude.
Thank you for your time.
-nerdegutta
First post, so be gentle.
I need help with some calculations. I got this number:
58.217088
b0 = 5, b1 = 8, b2 = 2, b3=1 and so on.
I want to trunc the 58.
Multiply the remainder with 0,6
And add 58 back, something like this:
58.217088 - 58 = 0,217088
0,217088 * 0,6 = 0,361813
58+0,361813 = 58,361813
How can I do this with my 14M2, or 20M2?
Yes, the numbers are from the $GPGGA NMEA sentence, and are Latitude.
Thank you for your time.
-nerdegutta