Hello,
I got correctly decimal Longitude & Latitude values, and now I try to calculate GPS coordinate, in manual, we can see:
# # #
If longitude is in west or latitude in south, multiply result by –1. To determine if the coordinate is negative, convert it to binary format and check the very first bit. If it is 0, coordinate is positive, if it is 1, coordinate is negative. Example:
Received value: 20 9c ca 80 Converted to BIN: 00100000 10011100 11001010 10000000 first bit is 0, which means coordinate is positive Converted to DEC: 547146368 For more information see two‘s complement arithmetics.
# # #
When I test the same decimal : 547146368 * 0.0000001 I got 54.714636 (correct value). Then I check first bit (from left) to add or no negative sign (-).
But when I test another decimal (from Google Map) : 50895408 * 0.0000001 I got 5.08954 (not correct value) instead of 50.895408.
So multiplication theory (* 0.0000001) is not correct or not complete. How can resolve that easily please ?
Thank you.