[Openmcl-devel] Negative number to positive whole-number float exponent

Liam Healy lnp at healy.washington.dc.us
Sun Apr 5 00:11:42 UTC 2009


A negative number to a positive whole-number exponent is real.
In CCL 1.2, when the exponent is a float, there value is complex
with a small imaginary part.  This is undesirable; can it be fixed?

Welcome to Clozure Common Lisp Version 1.2-r10552  (LinuxX8664)!
? (expt -1.0d0 1.0d0)
#C(-1.0D0 1.2246467991473532D-16)
? (expt -1.0d0 1)
-1.0D0

Thank you.

Liam



More information about the Openmcl-devel mailing list