Text Version
Beauty & Self
Books & Music
Career
Computers
Education
Family
Food & Wine
Health & Fitness
Hobbies & Crafts
Home & Garden
Money
News & Politics
Relationships
Religion & Spirituality
Sports
Travel & Culture
TV & Movies

 Philosophy Quotations Abundance / Wealth Reality TV Jewelry Making Mental Health Cosmetics

 All times in EST Full Schedule
 ASP Site Editor Wanted BellaOnline's ASP Editor

# Mod Remainder ASP Function

Guest Author - Lisa Shea

The mod function is rarely used in asp, but what it does is provide the remainder value in a division situation.

If you don't remember your basic math, the remainder is what is left over after you do a division problem. For example:

20 / 5 = 4, remainder 0

18 / 5 = 3, remainder 3

10 / 3 = 3, remainder 1

The format in ASP to get that remainder is

Remain = val1 mod val2

so if you wanted to find the remainder of 10 / 3, you would say

remain = 10 mod 3

or

val1 = 10
val2 = 3

remain = val1 mod val2

| Editor's Picks Articles | Top Ten Articles | Previous Features | Site Map

 Printer Friendly Bookmark Tell a Friend Forum Email Editor

This content was written by Lisa Shea. If you wish to use this content in any manner, you need written permission. Contact BellaOnline Administration for details.

 Forum Contact

Past Issues

 Poetry Daily Weekly Monthly Less than Monthly