[Top][All Lists]

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

Re: [Chicken-users] Rational numbers not working as expected

From: Nick Vaughn
Subject: Re: [Chicken-users] Rational numbers not working as expected
Date: Wed, 6 Mar 2013 14:12:44 -1000

On Wed, Mar 6, 2013 at 1:51 PM, Mario Domenech Goulart <address@hidden> wrote:
Hi Nick,

On Wed, 6 Mar 2013 13:58:48 -1000 Nick Vaughn <address@hidden> wrote:

> I'm having fun learning scheme using chicken.   Looking at the
> manual, I see that there is deviation from the R5RS standard in
> that numerator and denominator procedures cannot be applied to
> inexact numbers.  But I can't figure out how to make an exact
> rational. Tried (/ 6 4) and 6/4, but neither works.

You probably need the numbers egg:

  $ chicken-install numbers
  $ csi
  #;1> (use numbers)

Best wishes.

That fixed it.  Thanks Mario!


reply via email to

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