[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: strange behaviour of (floor .)
From: |
guign |
Subject: |
Re: strange behaviour of (floor .) |
Date: |
Mon, 28 Dec 2009 22:25:38 +0100 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
Hej...
> > The actual result shoud be 34.
> That's one of the answers you will get if you use a computer to
> calculate the results.
... what every computer scientist should know about floating point
numbers... ;)
seems like I didn't think about it, sorry :)
the number in my example is in fact not exactly represented, the
approximation is 12.33999999999999985789, and so, well... :)
thanks :)