title: Java float is more precise than double?
body: <p>Code:</p>
  
  <pre><code>class Main {
      public static void main (String[] args) {
          System.out.print("float: ");
          System.out.println(1.35f-0.00026f);
          System.out.print("double: ");
          System.out.println(1.35-0.00026);
      }
  }
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>float: 1.34974
  double: 1.3497400000000002
  </code></pre>
  
  <p>??? float got the right answer, but double is adding extra stuff from no where, Why??</p>
  
  <p>Isn't double supposed to be more precise than float?</p>