[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Axiom-developer] list bug, log10
From: |
root |
Subject: |
[Axiom-developer] list bug, log10 |
Date: |
Fri, 18 Jul 2003 18:56:15 -0400 |
> > we take the floor of the results as the length of the number
> > giving (floor (log10 1000)) =3D> 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
It is purely an optimization line in the code for integers.
Rather than convert the integers to strings and count the string
length we use the log10 of the integer.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Axiom-developer] list bug, log10,
root <=