[erlang-questions] Any way to correct the round off errors?

Richard Kelsall r.kelsall@REDACTED
Sun Sep 20 19:36:07 CEST 2009


Hynek Vychodil wrote:
> Interesting, but seems well for me.
> 
> $ erl
> Erlang R13B01 (erts-5.7.2) [source] [smp:2:2] [rq:2] [async-threads:0] 
> [hipe] [kernel-poll:false]
> 
> Eshell V5.7.2  (abort with ^G)
> 1> 0.111111111111 + 0.111111111111.
> 0.222222222222
> 2> 0.111111111111 - 0.111111111111.
> 0.0
> 3> 0.111111111111 + 0.11111111111.
> 0.222222222221
> 4> 0.111111111111 - 0.11111111111.
> 1.0000056338554941e-12

Yes, as far as I know Erlang is working perfectly. I was only speaking
hypothetically. Sorry for the noise.


Richard.


More information about the erlang-questions mailing list