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
Action Movies
Bible Basics
Houseplants
Romance Movies
Creativity
Family Travel
Southwest USA


dailyclick
All times in EST

Low Carb: 8:00 PM

Full Schedule
g
g ASP Site

BellaOnline's ASP Editor

g

cInt Math / Numeric Function


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.

So let's say you have

ItemBought = "14 cats"

You could parse out the left side of that text string so that you end up with

ItemCt = "14"

but you can't actually do math calculations with that, because it is a string of characters, not an actual number. So to turn that into a number value, you would use:

ItemNum = cInt(ItemCt)

ASP Math and Number Functions

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.
Add cInt+Math+%2F+Numeric+Function to Twitter Add cInt+Math+%2F+Numeric+Function to Facebook Add cInt+Math+%2F+Numeric+Function to MySpace Add cInt+Math+%2F+Numeric+Function to Del.icio.us Digg cInt+Math+%2F+Numeric+Function Add cInt+Math+%2F+Numeric+Function to Yahoo My Web Add cInt+Math+%2F+Numeric+Function to Google Bookmarks Add cInt+Math+%2F+Numeric+Function to Stumbleupon Add cInt+Math+%2F+Numeric+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