axiom-developer
[Top][All Lists]
Advanced

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

Re: [Axiom-developer] list bug


From: Dylan Thurston
Subject: Re: [Axiom-developer] list bug
Date: Fri, 18 Jul 2003 17:54:14 -0400
User-agent: Mutt/1.5.4i

On Fri, Jul 18, 2003 at 05:13:34PM -0400, root wrote:
> Camm,
> 
> Bill Page pointed me to an email (which I either never received or
> it never hit my long-term memory) from Juergen Weiss that found the
> root of the display problem. The LOG10 function in GCL returns 
> rounded values that are used in the output length computation
> (src/interp/i-output.boot.pamphlet, line 843).
> 
> The GCL results are:
> log10(100) ==> 2.0
> log10(1000) ==> 2.9999999999999996
> 
> we take the floor of the results as the length of the number
> giving (floor (log10 1000)) => 2 rather than 3. Patching the
> generated boot.clisp code and reloading it fixes the problem.
> For now I'll add a fudge factor into the boot code.

I do hope you will fix this correctly.  It is very wrong to be using a
floating point log to display integers.

Peace,
        Dylan

Attachment: pgpybBAfaH4_d.pgp
Description: PGP signature


reply via email to

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