[Top][All Lists]
[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 09:47:12 -0700 |
On Tue, 2009-08-04 at 01:45 -0700, Elf wrote:
> not all flonums are rational.
> chicken is perfectly compliant with r5 here: r5 does not require the entire
> numeric tower.
1) On Chicken Scheme, all flonums *are* rational.
2) R5RS does not require a system to have rational numbers, but if it
has them, it is required to support numerator and denominator on any "q"
type argument, that is, an argument for which rational? returns #t.
The manual *already* documents this as a deviation from the standard, it
just documents the deviation incorrectly.
Thomas
Re: [Chicken-hackers] numerator/denominator, Thomas Bushnell BSG, 2009/08/04