chicken-hackers
[Top][All Lists]
Advanced

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

Re: [Chicken-hackers] numerator/denominator


From: Thomas Bushnell BSG
Subject: Re: [Chicken-hackers] numerator/denominator
Date: Tue, 04 Aug 2009 10:28:31 -0700

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]