[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.
- 0.3*3 == 0.9?, Michael Creel, 2010/08/25
- Re: 0.3*3 == 0.9?, Jordi Gutiérrez Hermoso, 2010/08/25
- Re: 0.3*3 == 0.9?, Jordi Gutiérrez Hermoso, 2010/08/25
- Re: 0.3*3 == 0.9?, Michael Creel, 2010/08/25
- Re: 0.3*3 == 0.9?, Jordi Gutiérrez Hermoso, 2010/08/25
- Re: 0.3*3 == 0.9?, Jaroslav Hajek, 2010/08/25
- Re: 0.3*3 == 0.9?, Michael Creel, 2010/08/25
- Re: 0.3*3 == 0.9?, José Luis García Pallero, 2010/08/25
- Re: 0.3*3 == 0.9?,
Jordi Gutiérrez Hermoso <=
- Re: 0.3*3 == 0.9?, Jaroslav Hajek, 2010/08/26
Re: 0.3*3 == 0.9?, Marc Weber, 2010/08/25
Re: 0.3*3 == 0.9?, CdeMills, 2010/08/26