Function: cl-mod

cl-mod is an autoloaded and byte-compiled function defined in cl-extra.el.gz.

Signature

(cl-mod X Y)

Documentation

The remainder of X divided by Y, with the same sign as Y.

View in manual

Aliases

mod* (obsolete since 27.1)

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/cl-extra.el.gz
;;;###autoload
(defun cl-mod (x y)
  "The remainder of X divided by Y, with the same sign as Y."
  (declare (side-effect-free t))
  (nth 1 (cl-floor x y)))