Thread
:
How do you calculate percentages in Javascript?
View Single Post
04-12-2011, 11:56 PM
PM User
|
#
2
bullant
Banned
Join Date: Feb 2011
Posts: 2,699
Thanks: 13
Thanked 395 Times in 395 Posts
For debugging add the alert in red and your error should become clear.
Code:
alert(f+' '+x.length);
percent=f/x.length * 100
bullant
View Public Profile
Find More Posts by bullant