Function: floor
floor is a function defined in floatfns.c.
Signature
(floor ARG &optional DIVISOR)
Documentation
Return the largest integer no greater than ARG.
This rounds the value towards -inf. With optional DIVISOR, return the largest integer no greater than ARG/DIVISOR.
Other relevant functions are documented in the number group.
Probably introduced at or before Emacs version 19.20.
Shortdoc
;; number
(floor 1.2)
=> 1
(floor -1.2)
=> -2
(floor 5.4 2)
=> 2
Source Code
// Defined in /usr/src/emacs/src/floatfns.c
{
return rounding_driver (arg, divisor, floor, mpz_fdiv_q, floor2);
}