chicken-users
[Top][All Lists]
Advanced

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

[Chicken-users] Problems with #e and #i in the numeric egg


From: John.Cowan
Subject: [Chicken-users] Problems with #e and #i in the numeric egg
Date: Tue, 18 Oct 2005 17:24:24 -0400
User-agent: Mutt/1.4.2.1i

1) The #i and #e syntaxes do not use the numeric egg's redefined versions of
exact->inexact and inexact->exact properly.  Thus #e5/2, #i5/2, and #e2.5
all produce errors instead of 5/2, 2.5, and 5/2 respectively.

2) I think that using inexact->exact for #e<decimal> is not the Right Thing.
With the previous point fixed, #e5.2 would return 
5854679515581645/1125899906842624
instead of 52/10 = 26/5.  I'd rather see the latter, thus allowing exact
rationals to be written as decimal numbers.

-- 
I marvel at the creature: so secret and         John Cowan
so sly as he is, to come sporting in the pool   address@hidden
before our very window.  Does he think that     http://www.reutershealth.com
Men sleep without watch all night?  --Faramir   http://www.ccil.org/~cowan




reply via email to

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