Welcome to my ASP Code Website

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.

Numeric / Math ASP Functions