Serial.print(Integer result);Serial.println(fractional result);
.43567 gets printed as0.43567
You can use dtostrf function to get the float into a string.http://www.nongnu.org/avr-libc/user-manual/group__avr__stdlib.html#ga060c998e77fb5fc0d3168b3ce8771d42Then, if the original float is in between 0 and 1, you trim one character from the left, the zero, out. Or trim all character to the left of the decimal separator out.I'll have to study how do you manipulate strings with Arduino, but how is this for a start?
So the number 40.43567 would be printed as:Code: [Select]Serial.print("40");Serial.print(".43567");
I would like to be able to calculate to that same degree of precision with my GPS module
What am I missing here?
About that 6 digit google gps coordinate, I stared at it sometime back and suspected it is just software engineers not knowing what a gps can do. I was right:http://wiki.xkcd.com/geohashing/GPS_accuracyI think getring 5 digits is already asking a bit too much;) 6 digits will be asking for 10 centimeter accuracy. Not sure if millitary can get that good.