title: Android GPS Result Format
body: <p>I have noticed with testing GPS locations, a value such as −123 might come up on Android as −23.83333336. Is there any way to format incoming GPS locations, such as within two decimal points? </p>
  
  <p>This way I can store values like −123.83 opposed to longer numeric values. I have checked out <code>DecimalFormat</code> and <code>NumberFormat</code>, but these are strings and my numbers are doubles, and I cannot find a better way. </p>
  
  <p>And does anyone know a maximum value of a location in numeric values? Knowing that, I can do something like</p>
  
  <pre><code>DecimalFormat df = new DecimalFormat("####.##");
  </code></pre>
  
  <p>knowing the highest number is in the thousands, etc.</p>