WoW:API ceil: Difference between revisions

50 bytes added ,  15 August 2023
m
Move page script moved page API ceil to WoW:API ceil without leaving a redirect
(Use Lua/Libshortcut template. Change category from "LUA Functions" to "Lua functions".)
m (Move page script moved page API ceil to WoW:API ceil without leaving a redirect)
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{:Lua/Libshortcut|ceil|math.ceil}}
{{wowlua}}
 
ceil(value) returns the ceiling of the value (the next highest whole number) i.e. rounds value ''up''
ceil(value) returns the ceiling of the value (the next highest whole number) i.e. rounds value ''up''
int = math.ceil(n);
int = ceil(n);


== Examples ==
   > print(ceil(3.141592653))
   > print(ceil(3.141592653))
   4
   4


{{LUA}}
  round
  > print(ceil(n - .5))
Anonymous user