When the input argument is 0 (integer), the output of PHASE must be a short-float.

This commit is contained in:
jjgarcia 2003-12-19 13:08:32 +00:00
parent 0772b295cc
commit 199f14dbc8

View file

@ -54,7 +54,7 @@ Returns the absolute value of NUMBER."
Returns the angle part (in radians) of the polar representation of NUMBER.
Returns zero for non-complex numbers."
(if (zerop x)
(float 0 (realpart x))
(if (eq x 0) 0.0 (float 0 (realpart x)))
(atan (imagpart x) (realpart x))))
(defun signum (x)