Computer Science Canada

Poll not adding up??

Author:  Jonny Tight Lips [ Thu Sep 22, 2005 8:18 pm ]
Post subject:  Poll not adding up??

What browser do you use?
Firefox
55% [ 79 ]
Internet Explorer
38% [ 54 ]
Something else.
6% [ 9 ]
Total Votes : 142

Was just looking at the poll on the main page (stats listed above) and reolized that the numbers don't add up. 55+38+6=99%. Yes I know that its because of decimals but just thought someone should know so they can fix it for v3. Just a thought.

Author:  beard0 [ Thu Sep 22, 2005 8:23 pm ]
Post subject: 

It's actually not because of rounding, by the simple fact that it's not rounding - it's truncating, which is the problem. 79/142 = 0.55633802..., and so should be rounded to 56% as an integer.

Author:  Jonny Tight Lips [ Thu Sep 22, 2005 8:55 pm ]
Post subject: 

yah thats what I ment.


: