WoW:API ceil: Difference between revisions
Jump to navigation
Jump to search
(Use Lua/Libshortcut template. Change category from "LUA Functions" to "Lua functions".) |
mNo edit summary |
||
| Line 5: | Line 5: | ||
> print(ceil(3.141592653)) | > print(ceil(3.141592653)) | ||
4 | 4 | ||
round | |||
> print(ceil(n - .5)) | |||
{{LUA}} | {{LUA}} | ||
Revision as of 01:56, 21 November 2006
ceil(value) returns the ceiling of the value (the next highest whole number) i.e. rounds value up
> print(ceil(3.141592653)) 4
round > print(ceil(n - .5))