- Function Floor(x)¶
Floor¶
Floor(
x ! (input) numerical expression
)
Arguments¶
- x
A scalar numerical expression.
Return Value¶
The function
Floor
returns the largest integer value \(\leq\) x.
Note
The function
Floor
will round to the nearest integer, if it lies within the equality tolerancesequality_absolute_tolerance
andequality_relative_tolerance
.The function
Floor
can be used in the constraints of nonlinear mathematical programs. However, nonlinear solvers may experience convergence problems around integer values.When the numerical expression contains a unit, the function
Floor
will first convert the expression to the corresponding base unit, before evaluating the function itself.
See also
The functions Ceil
, Round
, Precision
, Trunc
. Arithmetic
functions are discussed in full detail in Arithmetic Functions of the Language
Reference. Numeric tolerances are discussed in Arithmetic Functions of the
Language Reference.