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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Overflow Error 1

Status
Not open for further replies.

Stephenlyn

Programmer
May 25, 2000
34
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
 
Is it possible that you are not testing for zero values in the For and Against fields?

Dividing by zero will cause an error.

Wuxapian.
 
Yeah Good Question.

That the problem if the formula is:- (F\A) * 100.

cheers

Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top