AINT
Returns the nearest integer whose value is not greater than the integral value of x.
Format
AINT(x)Description
AINT(x) = floor(x) if x is greater than or equal to zero.
AINT(x) = ceil(x) if x is less than zero.
Arguments
- x
- Any valid function expression.
Comments
The mathematical function floor(x) calculates the largest integer not greater than x. ceil(x) calculates the smallest integer not less than x.
Example
<Reference_Variable
id = "1"
label = "AINT Example"
type = "EXPRESSION"
expr = "AINT(AY(569,193))"
/>
AINT(-1.2) = -1
AINT(5.8) = 5
AINT(0.8) = 0