chicken-users
[Top][All Lists]
Advanced

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

[Chicken-users] Odd floating-point representations


From: Category 5
Subject: [Chicken-users] Odd floating-point representations
Date: Wed, 15 Oct 2003 12:04:35 +0100
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (berkeley-unix)

When I evaluate most flonums the result is as expected:

>>> 0.39
0.39

But sometimes it isn't:

>>> (list 0.07 0.56 0.69 0.81 0.94)
(0.07000000000000001 0.5600000000000001 0.6899999999999999
 0.8100000000000001 0.9399999999999999)

This is problematic in some situations.  Can anyone explain what's going
on here?

-- 





reply via email to

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