[erlang-bugs] imprecise computation result

rytong-caoxu cao.xu@REDACTED
Thu Jun 6 07:41:02 CEST 2013


http://floating-point-gui.de

在 2013-6-6,下午1:33,Xu Yifeng <zfsgeek@REDACTED> 写道:

> 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
> 
> 
> _______________________________________________
> erlang-bugs mailing list
> erlang-bugs@REDACTED
> http://erlang.org/mailman/listinfo/erlang-bugs




More information about the erlang-bugs mailing list