Command Reference
:
Function Reference
:
Function Reference: F
@floor
Element Functions
Largest integer less than or equal
to (with optional precision).
Syntax:
@floor
(
x[, n]
)
x:
number
n:
(optional) integer
Return: number
•
@floor
(
x
) returns
, the largest integer that is less than or equal to
x
.
•
@floor
(
x, n
) returns
, the largest decimal number that is less than or equal to
x
at the given precision.
The decimal offset
n
may be interpreted as the precision to use when computing the floor. If
n
is not an integer, the integer floor
will be used.
Examples
= @floor(@pi)
returns 3.
= @floor(@pi,2)
returns 3.14.
= @floor(-@pi)
returns -4.
Cross-references
See also
@ceil
.