BellaOnline
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
Natural Living
Folklore and Mythology
Baptist
Florida
Cosmetics
Distance Learning
Reading




dailyclick
All times in EST

Full Schedule
g
g ASP Site

BellaOnline's ASP Editor

g

Int Math / Numeric Function


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.

So say you have a value that is

PercRight = 89.285728

but you want to show a simple "89%" to your end user. You would say

PercRight = Int(PercRight)
response.write PercRight & "%"

and that would chop it down to just the 89 part of the number.

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 Int+Math+%2F+Numeric+Function to Twitter Add Int+Math+%2F+Numeric+Function to Facebook Add Int+Math+%2F+Numeric+Function to MySpace Add Int+Math+%2F+Numeric+Function to Del.icio.us Digg Int+Math+%2F+Numeric+Function Add Int+Math+%2F+Numeric+Function to Yahoo My Web Add Int+Math+%2F+Numeric+Function to Google Bookmarks Add Int+Math+%2F+Numeric+Function to Stumbleupon Add Int+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 © 2018 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
Regular Expression Pattern Matching

Split ASP String Function

Saving Changes is Not Permitted error

Archives | Site Map

forum
Forum
email
Contact

Past Issues
memberscenter

Note: BellaOnline uses cookies to help provide a consistent user experience. Our advertisers may use cookies to help customize ads. Please contact us with any question about our cookie use.



vote
Summertime Foods
Corn on the Cob
Sangria
Burgers on the Grill
Apple Pie



g


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


BellaOnline Editor