# HG changeset patch # User sheepyluva@gmail.com # Date 1390341324 0 # Node ID 5b90c6ef1f62821993a3af79b4120433cc8087d3 # Parent 87b3dcfe11ccee9ac86ed2c6f7348e1fa8c245d0 add div() diff -r 87b3dcfe11cc -r 5b90c6ef1f62 LuaAPI.wiki --- a/LuaAPI.wiki Tue Jan 21 14:59:27 2014 +0000 +++ b/LuaAPI.wiki Tue Jan 21 21:55:24 2014 +0000 @@ -815,6 +815,14 @@ If any health stats haven't been sent before this will cause the health graph to the stats page to be hidden. Use this function in the lua scripts to produce custom graphs by calling it inside onGameStart() and using the SendStat(). +== Math Functions == + +=== !div(dividend, divisor) === + +
Performs an integer division and returns the result. +The result is an integer and has the value of the first parameter (integer) divided by the second parameter (integer), rounded towards zero. +
+ == Debugging Functions == === !WriteLnToConsole(string) ===