WoW:API ceil: Difference between revisions

85 bytes added ,  15 August 2023
m
Move page script moved page API ceil to WoW:API ceil without leaving a redirect
mNo edit summary
m (Move page script moved page API ceil to WoW:API ceil without leaving a redirect)
 
(7 intermediate revisions by 7 users not shown)
Line 1: Line 1:
ceil(value) returns the ceiling of the value (the next highest whole number)
{{wowlua}}
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);


[[Category:API Functions|ceil]]
== Examples ==
[[Category:API Math Functions|ceil]]
  > print(ceil(3.141592653))
  4
 
  round
  > print(ceil(n - .5))
Anonymous user