Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Poll not adding up??
Index -> General Discussion
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Jonny Tight Lips




PostPosted: 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.
Sponsor
Sponsor
Sponsor
sponsor
beard0




PostPosted: Thu Sep 22, 2005 8:23 pm   Post subject: (No 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.
Jonny Tight Lips




PostPosted: Thu Sep 22, 2005 8:55 pm   Post subject: (No subject)

yah thats what I ment.
Display posts from previous:   
   Index -> General Discussion
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: