I have noticed with testing GPS locations, a value such as -123 might come up on Android as -123.83333336... is there anyway to format incoming GPS locations, such as within 2 decimal points? This way I can store values like -123.83 opposed to longer numeric values. I have checked out DecimalFormat and NumberFormat, these are strings and my numbers are doubles, I cannot find a better way. And does anyone know a maximum value of a location in numeric values? Knowing that, I can do something like
DecimalFormat df = new DecimalFormat("####.##");
knowing the highest number is in the thousands, etc.
Thanks!