Math.ceil
From Data Realms Wiki
Revision as of 01:32, 18 May 2009 by
Thoughtprocess
(
Talk
)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to:
navigation
,
search
Function
Syntax
math.ceil(
Number
)
Description:
Rounds up a given number to the nearest whole number.
Returns
Number
Example
Description
Rounds up 1.5.
Code
print
(
math.ceil
(
1.5
)
)
Output
Prints 2.
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