WoW:API ceil

Revision as of 04:45, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API ceil to API ceil without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

WoW Lua

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

ExamplesEdit

 > print(ceil(3.141592653))
 4
 round
 > print(ceil(n - .5))