BetaArchive Logo
Navigation Home Screenshots Image Uploader Server Info FTP Servers Wiki Forum RSS Feed Rules Please Donate
UP: 25d, 16h, 22m | CPU: 51% | MEM: 5588MB of 10798MB used
{The community for beta collectors}

Forum rules


Any off topic discussions should go in this forum. Post count is not increased by posting here.
FTP Access status is required to post in this forum. Find out how to get it


Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 8 posts ] 
Author Message
 PostPost subject: phpBB2 bug in poll percentage count        Posted: Sat Nov 22, 2008 11:06 pm 
FTP Access
Offline

Joined
Tue Oct 23, 2007 11:21 pm

Posts
595
Did anyone noticed that if you have a poll in phpBB2 and it has 3 votes (one for each option) the vote percentage will be 33+33+33 which equals 99?

IMO it's better having decimal percentage than approximate percentage.

Screenshot follows (it's from a poll I made today GMT-3):

Image

(de-thumbnailed because of matching image sizes)


Top  Profile
 PostPost subject:        Posted: Sat Nov 22, 2008 11:08 pm 
Donator
User avatar
Offline

Joined
Tue Aug 12, 2008 7:37 pm

Posts
2381

Location
United States
err, who cares about decimal places....im pretty glad they didn't make it so there where decimal places actually.


Top  Profile
 PostPost subject:        Posted: Sat Nov 22, 2008 11:11 pm 
Donator
User avatar
Offline

Joined
Tue Oct 02, 2007 1:43 am

Posts
163
I can't seem to find a two digit mixed number that will equal exactly 100.
33.3 * 3 = 99.9
33.4 * 3= 100.2


Top  Profile
 PostPost subject:        Posted: Sat Nov 22, 2008 11:12 pm 
FTP Access
Offline

Joined
Tue May 08, 2007 4:29 pm

Posts
70
its not really a bug, more just the fact that they don't accommodate for decimal points

besides you cant actually divide 100 by 3 without going into reoccurring numbers its just impossible to actually give a dead accurate figure as we just round up the sum of 3 times 3.3333333* to make 100


*etc


Top  Profile
 PostPost subject:        Posted: Sun Nov 23, 2008 2:49 pm 
Donator
User avatar
Offline

Joined
Mon Sep 04, 2006 1:06 pm

Posts
1004

Location
USA
As others have said, that is the correct mathematical way to do it. You could say 1/3, but once you got to different percentages, the fractions would be weird and huge. It's just supposed to be 33.33333..., as 2 33's and 1 34 would be wrong.

_________________
Old-Computer
BetaArchive VIP | Ex-OSBA Member


Top  Profile
 PostPost subject:        Posted: Sun Nov 23, 2008 5:03 pm 
Staff
User avatar
Offline

Joined
Sun Nov 09, 2008 12:09 am

Posts
2480

Location
Bristol, UK

Favourite OS
Windows 8
st.alfonzo wrote:
I can't seem to find a two digit mixed number that will equal exactly 100.
33.3 * 3 = 99.9
33.4 * 3= 100.2


There's some way of mathematically proving 99.99999 is 100 - I can't remember of the top of my head (same as 0.999999 = 1)

Thats just some limitation of phpBB2 and I think it was fixed in phpbb3

It's not a life threatening bug either, it can be lived with,

_________________
Image


Top  Profile  WWW
 PostPost subject:        Posted: Sun Nov 23, 2008 6:07 pm 
FTP Access
User avatar
Offline

Joined
Tue Aug 05, 2008 1:46 pm

Posts
682

Favourite OS
Windows Neptune & Longhorn
I don't think that it is a big bug, I mean, it is just a little preview of the votes.

When it has to change, I don't think it is handy to use 33.333333 etc. but 33 1/3.

_________________
Image


Top  Profile
 PostPost subject:        Posted: Sun Nov 23, 2008 8:57 pm 
Donator
User avatar
Offline

Joined
Tue Aug 12, 2008 7:37 pm

Posts
2381

Location
United States
who the heck cares about it anyway !does it really matter if a poll about something is exact as my algebra homework??? its a poll it gives you a general idea, you do the math yourslef it you need decimal places...


Top  Profile
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 8 posts ] 




Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Jump to:  

All views expressed in these forums are those of the author and do not necessarily represent the views of the BetaArchive site owner.

Powered by phpBB® Forum Software © phpBB Group

Copyright © 2006-2018

 

Sitemap | XML | RSS