The result of Math.log(3.0) is different on x86_64 and aarch64?
Tianhua huang
huangtianhua223 at gmail.com
Thu Jul 25 08:11:13 UTC 2019
Sorry to disturb you again, I took some tests of java.lang.Math.log
function on aarch64 server, I met a strange case, the result of
Math.log(3.0) is different with x86_64:
on x86_64:
scala> Math.log(3.0) res50: Double = 1.0986122886681098
but on aarch64:
scala> Math.log(3.0) res19: Double = 1.0986122886681096
Then I tried Math.log(4.0), Math.log(5.0) and some other numbers, the
results on x86_64 and aarch64 are same, why Math.log(3.0) is so special?
this confused me much, I think the result of
Math.log(Double) should be same across platforms, right?
More information about the jdk-dev
mailing list