[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: floating point precision question
From: |
Jordi Gutiérrez Hermoso |
Subject: |
Re: floating point precision question |
Date: |
Tue, 18 Jan 2011 09:04:21 -0600 |
On 18 January 2011 06:28, Martin Helm <address@hidden> wrote:
> Am Dienstag, 18. Januar 2011, 13:04:39 schrieb Piotr Isajew:
>> octave:150> 0.15 == (0.10 + 0.05)
>> ans = 0
>>
>> why?
> have a look at this elementary article which explains it much better
>
> http://en.wikipedia.org/wiki/Floating_point
I also like this in-depth one:
http://dlc.sun.com/pdf/800-7895/800-7895.pdf
Piotr, there's also this example:
0.3 - 0.2 - 0.1
HTH,
- Jordi G. H.