[erlang-bugs] Math library defect?
John Haugeland
stonecypher@REDACTED
Thu May 15 16:18:50 CEST 2008
I believe I have found a defect in the math library.
24> io:format("~f",[math:pow(2,56)]).
72057594037927936.000000ok
25> io:format("~f",[math:pow(2,57)]).
144115188075855870.000000ok
26> 72057594037927936 * 2.
144115188075855872
You'll notice that the value given by step 25 is incorrect by two.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20080515/ac4d9b12/attachment.htm>
More information about the erlang-bugs
mailing list