|
|
|
| 6 March 2002 | Mod() |
| Author | ScriptLogic Corporation |
| Action | Mathematical modulus. |
| Syntax | Mod (dividend, divisor) |
| Parameters | |
| Remarks | Due to popular demand (your votes), and the introduction of floating point support, KiXtart 4.10 will include this function nativley. |
| Returns | Returns the modulus of dividend/divisor. |
| Dependencies | None. |
| Examples | $result=mod(5,3) $x=9 $y=2 $result=Mod($x,$y) |
| Source | FUNCTION Mod ($dividend, $divisor) ;Modulus Function $dividend=0+$dividend $divisor=0+$divisor $mod=$dividend-(($dividend/$divisor)*$divisor) ENDFUNCTION ; - Mod - |
|
|
|