log10.mac



On Tue, Aug 12, 2008 at 2:15 PM, Edwin Woollett <woollett at charter.net> wrote:

>   * log10 (x) => log (x) / log (10) (if you ask for it explicitly)
>
> How do you "ask for it explicitly"?

expand_log10(expr) replaces log10(whatever) in expr.
Sorry, the comment isn't clear.

> also, why does %i6 work but %i5 doesn't?
> and  why does %i6 work but %i9 doesn't?

log10(float) yields a float. The numer flag changes non-integer
rationals to floats, but has no effect on integers. Probably the
rule for float evaluation should include log10(integer) when the
numer flag is enabled. I'll put it on my to-do list.

Thanks for taking a look at log10.

Robert Dodier