Skip to content
Snippets Groups Projects
Commit 0f17dd30 authored by rtoy's avatar rtoy
Browse files

Fix some issues with two-arg log function. (log 17 10f0), (log 17f0

10), and (log 17 10) returned different single-float results.  I think
this is allowed by ANSI CL, but I think it's unfortunate.

Therefore, try to apply float contagion to the arguments before
computing the log function.  Also, if both args are single-floats or
rationals, we coerce them to double-floats before computing the
result.  This makes (log 17 10) = (log 17.0 10).

There are other cases still to be considered.
parent d3e339fa
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment