WoW:API ceil: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{wowapi}}
{{:Lua/Libshortcut|ceil|math.ceil}}
{{:Lua/Libshortcut|ceil|math.ceil}}



Revision as of 21:29, 12 August 2008

WoW API < ceil

Lua/Libshortcut

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))

Template:LUA