LuaAPI.wiki
changeset 382 5b90c6ef1f62
parent 381 87b3dcfe11cc
child 383 6679b75048c0
--- 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().</blockquote>
 
+== Math Functions ==
+
+=== <tt>!div(dividend, divisor)</tt> ===
+
+<blockquote>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.
+</blockquote>
+
 == Debugging Functions ==
 
 === <tt>!WriteLnToConsole(string)</tt> ===