Mod
The Mod function computes the modulus of two numbers.
From mathematics, the modulus is the remainder that you get
when you divide one whole number by another.
As an example, when you divide 10 by 3, the largest whole number
you can get is 3 and the remainder would be 1. This remainder
is the modulus result when you compute 10 mod 3.
Response.Write "10 mod 3 = " & CStr(10 mod 3) Response.Write "10 mod 5 = " & CStr(10 mod 5) Response.Write "10 mod 7 = " & CStr(10 mod 3)
|
 |

|