Function: math-check-natnum
math-check-natnum is a byte-compiled function defined in
calc-ext.el.gz.
Signature
(math-check-natnum A)
Source Code
;; Defined in /usr/src/emacs/lisp/calc/calc-ext.el.gz
;;; Verify that A is an integer >= 0 and return A in integer form. [I N; - x]
(defun math-check-natnum (a) ; [Public]
(cond ((natnump a) a)
((and (not (math-negp a))
(Math-num-integerp a))
(math-trunc a))
(t (math-reject-arg a 'natnump))))