[erlang-bugs] imprecise computation result

Xu Yifeng zfsgeek@REDACTED
Thu Jun 6 07:33:42 CEST 2013


Erlang's matchematic is crazy:

Erlang R15B03 (erts-5.9.3.1) [source] [smp:2:2] [async-threads:0] [hipe] 
[kernel-poll:false]

Eshell V5.9.3.1  (abort with ^G)
1> 2.8 * 2800.
7839.999999999999
2>


but the result should be 7840.

--
Xu Yifeng





More information about the erlang-bugs mailing list