1 Reply Latest reply: Sep 10, 2008 2:20 AM by 843785 RSS

    float type

    843785
      Hello!

      Why this is happen?

      float f1 = 1053.75f;
      float f2 = 1052.8f;
      System.out.println(f1 - f2);

      Output: 0.9499512

      But 1053.75 - 1052.8 = 0.95