Thread: NaN
View Single Post
  #2 (permalink)  
Old August 4th, 2007, 05:06 AM
gaurav_jain2403 gaurav_jain2403 is offline
Friend of Wrox
Join Date: Feb 2006
Location: noida, UP, India.
Posts: 133
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to gaurav_jain2403

why dont you check the values before performing the divide function.

if (not Votes = 0 and not TotalVotes = 0)
   Calculate = Math.Round(Votes / TotalVotes * 100)

Else describe in more detail what is your problem exactly
Reply With Quote