Math.pow yields different results upon repeated calls

后端 未结 2 1814
失恋的感觉
失恋的感觉 2021-01-18 11:53

After upgrading to Java 1.8.0_20 our test system reported errors, but the code was not changed. I found out, that Math.pow() called with exactly the same input

2条回答
  •  情歌与酒
    2021-01-18 12:29

    It is a bug. I reported it to ORACLE (http://bugs.java.com/bugdatabase/view_bug.do?bug_id=8063086), it was accepted and is fixed in Java 9.

提交回复
热议问题