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: Peter Bex
Subject: Re: [Chicken-users] Problems with rationals
Date: Mon, 9 Apr 2012 22:12:29 +0200
User-agent: Mutt/1.4.2.3i

On Mon, Apr 09, 2012 at 09:00:10PM +0100, Mark Carter wrote:
> Is this a bug in chicken?
>       (rational? 6/10) => #f

Chicken by itself doesn't support ratnums.  You'll need the
"numbers" egg to get the full numeric tower (including arbitrarily
large numbers and complex numbers).

> Also
>       (* 1.0 5/2)
> produces
> Error: (*) bad argument type: 5/2

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

Cheers,
Peter
-- 
http://sjamaan.ath.cx
--
"The process of preparing programs for a digital computer
 is especially attractive, not only because it can be economically
 and scientifically rewarding, but also because it can be an aesthetic
 experience much like composing poetry or music."
                                                        -- Donald Knuth



reply via email to

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