Feb-06-2018, 08:14 PM
(This post was last modified: Feb-06-2018, 08:14 PM by Gribouillis.)
I think the answers you got from stackoverflow are correct. The hard coded value is not log(2) but log(2) truncated to the ieee754 representation on presumably 64 bits.
Concerning wolfram alpha's result here is what python says
Concerning wolfram alpha's result here is what python says
>>> from math import log >>> x = 0.6931471805599453094172321214581 >>> x == log(2) True >>> y = 6.93147180559945286227E-01 >>> y == log(2) Trueso there is no difference in ieee754 representation on 64 bits.