Function: math-idivmod
math-idivmod is a byte-compiled function defined in calc.el.gz.
Signature
(math-idivmod A B)
Source Code
;; Defined in /usr/src/emacs/lisp/calc/calc.el.gz
;;; Compute the integer (quotient . remainder) of A and B, which may be
;;; small or big integers. Type and consistency of truncation is undefined
;;; if A or B is negative. B must be nonzero. [I.I I I] [Public]
(defun math-idivmod (a b)
(if (eq b 0)
(math-reject-arg a "*Division by zero"))
(cons (/ a b) (% a b)))