[erlang-questions] erlang float comparison

Richard O'Keefe ok@REDACTED
Tue May 15 00:26:02 CEST 2012


On 14/05/2012, at 8:47 PM, Angel J. Alvarez Miguel wrote:

> 1.000000000000000002 > 1.0.  

That's because in 64-bit arithmetic, 1.000000000000000002 *is* 1.0.





More information about the erlang-questions mailing list