Hey guys, I have a math problem for php.
I have a rating system on my site that I want to display a percentage.
The ratings are from 1 to 5.
Say I had 4 votes and they were 2,3,4,5 how would I figure the percentage?
I tried 4 votes divided by the total (in this case 14) times 100, but that's not coming out right.
Anyone have any insight?
Thanks!