chicken-hackers
[Top][All Lists]
Advanced

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

Re: [Chicken-hackers] numerator/denominator


From: Elf
Subject: Re: [Chicken-hackers] numerator/denominator
Date: Tue, 4 Aug 2009 10:40:39 -0700 (PDT)
User-agent: Alpine 2.00 (LRH 1167 2008-08-23)


rational? always returns true for all numbers.

-elf

On Tue, 4 Aug 2009, Thomas Bushnell BSG wrote:

On Tue, 2009-08-04 at 10:17 -0700, Elf wrote:
chicken doesn't have rationals.

(rational? 2/3) => #t
(rational? 37287.2983) => #t

Perhaps you are thinking of this, which means something entirely
different?

(exact? 2/3) => #f
(exact? 37287.2983) => #f

Why say 'chicken doesn't have rationals', when it has a perfectly
satisfactory implementation of rationals, that is 100% standard
compliant except for three easy-to-write functions being missing?

What it doesn't have is *exact* rationals.

Thomas






reply via email to

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