[erlang-questions] round(1.0e23) ≠ 10²³

Pierre Fenoll <>
Sat Apr 6 22:34:33 CEST 2013


Hi,

I have notice that on both my R16B 64bit machines (Archlinux & OSX),
round(1.0e23) = 99999999999999991611392
Instead of 10²³ as it should.

I think it's a matter of float to int.
Do you guys have any idea? Am I doing something wrong?

Cheers,
Pierre
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130406/e25efb0c/attachment.html>


More information about the erlang-questions mailing list