Nashorn is too precise

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P3
    • None
    • Affects Version/s: None
    • Component/s: core-libs
    • None

      Running it on V8 with
      d8 loop.js -- 1 666666666
      prints the output
      "iterations": 1,
      "n": 666666666,
      "result": 222222221844886660,

      Running it on Nashorn with
      jdk1.8.0/bin/jjs loop.js -- 1 666666666
      prints the output
      "iterations": 1,
      "n": 666666666,
      "result": 222222221844886656,

            Assignee:
            Hannes Wallnoefer
            Reporter:
            Jim Laskey
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: