#elisp
Function:
truncate number &optional divisorThis 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
If you want to change selection, open document below and click on "Move attachment"
GNU Emacs Lisp Reference Manual: Numeric Conversions it unchanged
if it already is an integer. If divisor is non- nil , they
divide number by divisor and convert the result to an
integer. If divisor is zero (whether integer or
floating point), Emacs signals an arith-error error.
<span>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
Function: floor number &optional divisor This returns number , converted to an integer by rounding downward
(towards negative infinity).
If divisor is specified, this uses th Summary
status | not read | | reprioritisations | |
---|
last reprioritisation on | | | suggested re-reading day | |
---|
started reading on | | | finished reading on | |
---|
Details