title: Loss of digits when dividing floats C++ (Arduino)
body: <p>I am trying to get a gps reading from a string to a float on my Arduino. The string has all handles all of the digits just fine, but when I divide it to get a float I lose 4 of my digits. Here is my code:</p>
  
  <pre><code>gpsStrings[0].replace(".", "");
  lat = gpsRawData[0].toFloat();
  lat = lat / 1000000.0;
  </code></pre>
  
  <p>Using .toFloat on a string that still has the decimal point in it results in the same thing, only two numbers after the decimal point.</p>
  
  <p>Example numbers:</p>
  
  <pre><code>42427898 :: 42.43 - what happens
  42427898 :: 42.427898 - what I want to happen
  </code></pre>