[Top][All Lists]

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

Re: ratio implementation

From: Bill Schottstaedt
Subject: Re: ratio implementation
Date: Fri, 17 Oct 2003 04:47:33 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225

> The above behavior of inexact->exact better fits R5RS, I'd say, since
> R5RS calls for the _closest_ representable exact number, not for the
> simplest, as with rationalize.  So I'm inclined to use it intead of
> rationalize.  Ok?

I didn't notice the distinction.  I'd go with your version.

> Hmm, what about a SCM version of the code?  I'm about to write such a
> thing, but I first needed a proper scm_floor...

Yes, that's a better approach.

reply via email to

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