title: the output of the following code was "1.4E-45 3.4E24".why is 2e-45f being displayed as 1.4e-45?
body: <pre><code>class Test
  {
  public static void main(String [] args) {
    float a;
    a = 2e-45f;
    double b = 34e23;
    System.out.println(a + "  " + b); // prints "1.4E-45 3.4E24"
   }
  }
  </code></pre>
  
  <p>this code was used to understand exponential notation in java.</p>