#elisp
Function:
floor number &optional divisorThis returns number , converted to an integer by rounding downward
(towards negative infinity).
If divisor is specified, this uses the kind of division
operation that corresponds to mod
, rounding downward.
(floor 1.2) ⇒ 1
(floor 1.7) ⇒ 1
(floor -1.2) ⇒ -2
(floor -1.7) ⇒ -2
(floor 5.99 3) ⇒ 1
If you want to change selection, open document below and click on "Move attachment"
GNU Emacs Lisp Reference Manual: Numeric Conversionsrror.
Function: truncate number &optional divisor This returns number , converted to an integer by rounding towards
zero.
(truncate 1.2)
⇒ 1
(truncate 1.7)
⇒ 1
(truncate -1.2)
⇒ -1
(truncate -1.7)
⇒ -1
<span>Function: floor number &optional divisor This returns number , converted to an integer by rounding downward
(towards negative infinity).
If divisor is specified, this uses the kind of division
operation that corresponds to mod , rounding downward.
(floor 1.2)
⇒ 1
(floor 1.7)
⇒ 1
(floor -1.2)
⇒ -2
(floor -1.7)
⇒ -2
(floor 5.99 3)
⇒ 1
Function: ceiling number &optional divisor This returns number , converted to an integer by rounding upward
(towards positive infinity).
(ceiling 1.2)
⇒ 2
(ceiling 1.7)
Summary
status | not read | | reprioritisations | |
---|
last reprioritisation on | | | suggested re-reading day | |
---|
started reading on | | | finished reading on | |
---|
Details