[erlang-questions] erlang float comparison

Bart van Deenen <>
Mon May 14 11:19:03 CEST 2012


On 05/14/2012 10:47 AM, Angel J. Alvarez Miguel wrote:
> Well we just picked the wrong example
>
>
> that's is the problem
>
> :~>  erl
> Erlang R15B01 (erts-5.9.1) [source] [64-bit] [smp:4:4] [async-threads:0]
> [hipe] [kernel-poll:false]
>
> [QuickCheck] [PropEr] [Erl0MQ]
> Eshell V5.9.1  (abort with ^G)
> 1>  1.000000000000000002>  1.0.
> false
>
1> 1.000000000000000002 > 1.0.
false
2> 1.000000000000000002 == 1.0.
true
3>
So I don't get the problem.




More information about the erlang-questions mailing list