guile-user
[Top][All Lists]
Advanced

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

Re: r5rs section 6.2.3 inexactness and rational sqrt


From: Ray Lehtiniemi
Subject: Re: r5rs section 6.2.3 inexactness and rational sqrt
Date: Fri, 16 Apr 2004 17:49:33 -0600
User-agent: Mutt/1.4i

On Sat, Apr 17, 2004 at 09:23:40AM +1000, Kevin Ryde wrote:
> Ray Lehtiniemi <address@hidden> writes:
> >
> >   guile> (floor 1234)
> >   1234.0
> >
> > i'd expect that to be an exact integer, and indeed r5rs section 6.2.3
> > says that (floor n) should return an exact integer as long as the input
> > is exact:
> 
> Yep, that looks wrong.  Marius applied a fix not so long ago in the
> head, lobby him for the same in 1.6.

well, it's not super critical (for me anyway) since i have the workaround.
any idea when the next stable series is due?



> Alas, sqrt 6 comes out as a flonum, which is rational.

bummer.  seems that MIT/GNU scheme 7.7.1 does the same thing too, though....


-- 
----------------------------------------------------------------------
     Ray L   <address@hidden>




reply via email to

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