Function: math-zerop
math-zerop is an autoloaded and byte-compiled function defined in
calc-misc.el.gz.
Signature
(math-zerop A)
Source Code
;; Defined in /usr/src/emacs/lisp/calc/calc-misc.el.gz
;; True if A is zero. Works for un-normalized values. [P n] [Public]
;;;###autoload
(defun math-zerop (a)
(if (consp a)
(cond ((memq (car a) '(frac float polar mod))
(math-zerop (nth 1 a)))
((eq (car a) 'cplx)
(and (math-zerop (nth 1 a)) (math-zerop (nth 2 a))))
((eq (car a) 'hms)
(and (math-zerop (nth 1 a))
(math-zerop (nth 2 a))
(math-zerop (nth 3 a)))))
(eq a 0)))