Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Overflow Error

Status
Not open for further replies.

Stephenlyn

Programmer
May 25, 2000
34
0
0
AU
Hi All

I have setup a football tipping ASP site and one of my pages has a ladder of the teams and their current position. I am sorting the ladder by points based on a win/loss/draw scoring system. I then sort them again based on a percentage of points scored for and against. (Is there a question in here somewhere) My question is if I try to do almost any computation with the points for & against I have no problems until I try "(For / Against)*100", this gives me an overflow error. What am I doing wrong?

I have wasted a few hours already on what I thought was a very simple exercise so any help would be appreciated.

Regards

Steve
 
If Against is ever 0, you'll have a divide by zero error. That may be your problem.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top