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