help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 0.3*3 == 0.9?


From: Jordi Gutiérrez Hermoso
Subject: Re: 0.3*3 == 0.9?
Date: Wed, 25 Aug 2010 17:41:55 -0500

2010/8/25 Michael Creel <address@hidden>:
> I thought that comparison of floats returned true if the difference was less
> than machine precision.

Machine epsilon isn't always the best comparison size, not even with
relative error. Hardware floats don't carry information around them
saying, "this many of my digits are correct".

I do recommend you read the long-winded article I linked to earlier today.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]