For a guide to the choosing ASP or PHP, click here
Home >> Math >> Get the Remainder after Division This sample code will show you how to get the remainder after preforming a division problem
<% ' declare variables dim intNum1, intNum2, intRemainder ' first set intNum1 to 10 ' and set intNum2 to 4 intNum1 = 10 intNum2 = 4 ' now this will divide intNum1 by ' intNum2, and will save the remainder ' to the variable intRemainder intRemainder = intNum1 mod intNum2 %> What is ASP?
What is PHP?