math.round

J

Jeff Uchtman

I am not sure I am doing this right but I do get a result. How can I round
the value to the nearest whole number. I have searched on math.round but
can not get it to function. Here is how I am getting the results if not
division by zero.
<%results =
rsCir("PetA")+rsCir("PetB")+rsCir("PetC")+rsCir("PetD")/rsCir("Abandons")%>
How can I get only the whole number from this division?
Thanks

Jeff
 
E

Evertjan.

Jeff Uchtman wrote on 17 feb 2004 in
microsoft.public.inetserver.asp.general:
Got it. Did it with a formatpercent.

Math.round is javascript.

For vbscript, better use:

result = Round(expression)


[the format functions return a string]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,145
Messages
2,570,826
Members
47,371
Latest member
Brkaa

Latest Threads

Top