[erlang-bugs] Please ignore the previous post
Matthew Dempsky
matthew@REDACTED
Thu May 15 19:04:28 CEST 2008
2008/5/15 John Haugeland <stonecypher@REDACTED>:
> As many are now pointing out, my error is that floating point is a limited
> accuracy medium. I was under the misimpression that Erlang had infinite
> precision libraries in use for all numeric types; this turns out only to be
> true of integers.
Assuming you're referring to the post about math:pow(2, 56) vs.
math:pow(2, 57), those people are wrong unless you're using an
computer that does not use IEEE floating point numbers. IEEE-754 can
exactly represent powers of 2 (constrained by limitations of the
exponent).
More information about the erlang-bugs
mailing list