Function: cl-floor
cl-floor is an autoloaded and byte-compiled function defined in
cl-extra.el.gz.
Signature
(cl-floor X &optional Y)
Documentation
Return a list of the floor of X and the fractional part of X.
With two arguments, return floor and remainder of their quotient.
Aliases
org-floor* (obsolete since 9.0)
floor* (obsolete since 27.1)
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/cl-extra.el.gz
;;;###autoload
(defun cl-floor (x &optional y)
"Return a list of the floor of X and the fractional part of X.
With two arguments, return floor and remainder of their quotient."
(let ((q (floor x y)))
(list q (- x (if y (* y q) q)))))