logo
g 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

dailyclick
Bored? Games!
Nutrition
Postcards
Take a Quiz
Rate My Photo

new
European Travel
Action Movies
Bible Basics
Houseplants
Romance Movies
Creativity
Family Travel


dailyclick
All times in EST

Full Schedule
g
g ASP Site

BellaOnline's ASP Editor

g

Mod Remainder ASP Function


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
Add Mod+Remainder+ASP+Function to Twitter Add Mod+Remainder+ASP+Function to Facebook Add Mod+Remainder+ASP+Function to MySpace Add Mod+Remainder+ASP+Function to Del.icio.us Digg Mod+Remainder+ASP+Function Add Mod+Remainder+ASP+Function to Yahoo My Web Add Mod+Remainder+ASP+Function to Google Bookmarks Add Mod+Remainder+ASP+Function to Stumbleupon Add Mod+Remainder+ASP+Function to Reddit




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


For FREE email updates, subscribe to the ASP Newsletter


Past Issues


print
Printer Friendly
bookmark
Bookmark
tell friend
Tell a Friend
forum
Forum
email
Email Editor


Content copyright © 2014 by Lisa Shea. All rights reserved.
This content was written by Lisa Shea. If you wish to use this content in any manner, you need written permission. Contact Lisa Shea for details.

g


g features
Archives | Site Map

forum
Forum
email
Contact

Past Issues
memberscenter


vote
Poetry
Daily
Weekly
Monthly
Less than Monthly



BellaOnline on Facebook
g


| About BellaOnline | Privacy Policy | Advertising | Become an Editor |
Website copyright © 2014 Minerva WebWorks LLC. All rights reserved.


BellaOnline Editor