TMBASIC
Documentation
Docs
GitHub
TMBASIC Documentation
►
Procedures: Math
Ceil
Procedure
Returns the smallest integer that is greater than or equal to
x
.
Declaration
function Ceil(x as Number) as Number
Parameters
x
as
Number
— Input number.
Return value
Number
— Integer value.
Example
Code
print Ceil(5.5)
print Ceil(-6.5)
Output
6
-6