Math.floor
From Data Realms Wiki
Jump to:
navigation
,
search
Function
Syntax
math.floor(
Number
)
Description:
Rounds down a given number to the nearest whole number.
Returns
Number
Example
Description
Rounds down 1.5.
Code
print
(
math.floor
(
1.5
)
)
Output
Prints 1.
Category
:
Lua
Views
Page
Discussion
View source
History
Personal tools
Log in / create account
Navigation
Main page
Community portal
Current events
Recent changes
Random page
Help
Search
Toolbox
What links here
Related changes
Special pages
Printable version
Permanent link