Home  |  Latest News  |  Contribute  |  F.A.Q.  |  Account  |  Scripts | About
Search ASPNut:
 
ASP Reference
Server Variables
ASP Glossary
Related Sites

Free Components

Web Colors
Entities
CSS Level 1
Encode/Decode
Glossary

Our Sponsors
ASP Nuke CMS
Free Auctions
PHP 5 Script
Funktastic Blog
ULost Directory
Team Task

 

 

 

 

 

 

 

 

 

 

 

 

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)

Orvado, San Diego Web Design

ASP Nuke CMS
Free Open Source
Content Manager
GoSwap Auctions
Buy, Sell
No Fees!

Contact Us | Contribute | About | Site Map



"Democracy consists of choosing your dictators, after they've told you what it is you want to hear." - Alan Coren

©2012 San Diego Web Design - Orvado Technologies, All Rights Reserved
ASP Nut provides articles and reference documentation for Active Server Page developers.