chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] Problems with rationals


From: Mark Carter
Subject: Re: [Chicken-users] Problems with rationals
Date: Mon, 9 Apr 2012 21:39:06 +0100
User-agent: KMail/1.13.7 (Linux/3.2.0-1-686-pae; KDE/4.6.5; i686; ; )

> If I want to reproduce this, do I need to type in anything else?
> It doesn't happen here.

After some experimenting, the statistics eggs seems to introduce some 
peculiarity. Here's a session:

----------------------------------------------------------------------
#;1> (* 1.0 5/2)

Warning: cannot represent exact fraction - coerced to flonum: "5/2"
2.5
#;2> (use statistics)
#;3> (* 1.0 5/2)

Error: (*) bad argument type: 5/2

        Call history:

        <syntax>          (* 1.0 5/2)
        <eval>    (* 1.0 5/2)   <--
#;3> (use numbers)
#;4> (* 1.0 5/2)
2.5



reply via email to

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