fork download
  1. class Test
  2. {
  3. public static void main (String[] args) throws java.lang.Exception
  4. {
  5. double d = 1.2347;
  6. System.out.println(d * 10000.0);
  7. System.out.println(d * 10000.0 - 12347);
  8. }
  9. }
Success #stdin #stdout 0.07s 380160KB
stdin
Standard input is empty
stdout
12346.999999999998
-1.8189894035458565E-12