7 lines
1.3 KiB
HTML
7 lines
1.3 KiB
HTML
<html><head><title>Command: Mod </title><meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'><link rel='stylesheet' href='../css/commands.css' type='text/css'></head><body><span class='Command'> Mod </span></p><span class='header'>Definition:</span> <br><br><table width='100%' border='0' cellspacing='2' cellpadding='2' align='center'><tr><td>Returns the amount by which a number exceeds the largest integer multiple of the divisor that is not greater than that number. </td></tr></table><span class='header'><br>Parameter Description:</span> <br><br><table width='100%' border='0' cellspacing='2' cellpadding='2' align='center'><tr><td>None</td></tr></table><p class='header'>Command Description: <br><br><table width='100%' border='0' cellspacing='2' cellpadding='2' align='center'><tr><td>Basically, this will divide your number as many times as possible by the divisor, then return you the remaining amount.</td></tr></table><p class='header'>Example: <br><br><table width='100%' border='0' cellspacing='2' cellpadding='2' align='center'><tr><td>; MOD Example<br>
|
|
<br>
|
|
; Divide 10 by 3 until you reach a point that you can't
|
|
; Then print the remaining value - in this case, 1
|
|
Print 10 MOD 3<br></td></tr></table><p><b><a target="_top" href="../index.htm">Index</a></b></p></body>
|
|
</html>
|