ASP Math and Number Functions

ASP Math and Number Functions
ASP is a great language for web development, and it has many math and numerical functions to help make your life even easier.

RND / Randomize
You need to use both RND and Randomize to create truly random numbers for your scripts.
More about RND and Randomize

Round lets you round a number off to a certain number of decimal points.
More about Round

If a user passes in a text string that contains numbers, you can use cInt to change those values from a text type to a numeric type.
More about cInt

Don't confuse Int with cInt! cInt turns a text variable into a numeric variable. Int takes a number and chops off any decimal points, turning it into a whole number.
More about Int

With the mod function, you can determine the remainder of a division problem.
More about Mod

Introduction to ASP Ebook

Download this ebook to get everything you need to know about learning ASP - from a step by step tutorial to function lists, sample code, common errors and solutions, and much more! 101 pages.

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

Content copyright © 2023 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.