Methods for integer
Returns the next-higher integer as the integer value. Negative values have to be enclosed by brackets, to avoid that the absolute value is treated first and the negation is processed afterwards, which leads to wrong results.
ceil() | ||||
---|---|---|---|---|
Argument | ||||
Return value | Integer | Next-higher integer. |
Formula | Result |
---|---|
=2.3.ceil() =(-2.3).ceil() |
3 -2 |