[erlang-questions] In Erlang , {1.1*1.1.} show me the answer is 1.2100000000000002, why?

Stuart Coyle stuart.coyle@REDACTED
Mon Oct 27 01:17:58 CET 2014


I would direct you to Knuth, "The Art of Computer Programming", Volume II.
Floating point is harder to do in computers than you would intuitively
expect it to be. There are a
bunch of strange edge cases, even when you are not running on a Pentium
<http://en.wikipedia.org/wiki/Pentium_FDIV_bug>.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20141027/afc221b8/attachment.htm>


More information about the erlang-questions mailing list