Closed (won't fix)
Project:
Advanced Poll
Version:
5.x-1.0-beta6
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Sep 2008 at 08:13 UTC
Updated:
8 Dec 2008 at 05:45 UTC
There's a bug in the algorithm rounding all votes off with no further verification, meaning that you're likely to end up with !=100, e.g.
34% | Kobe Bryant (USA)
29% | LeBron James (USA)
15% | Dwyane Wade (USA)
13% | Pau Gasol (ESP)
8% | Manu Ginobili (ARG)
3% | Luis Scola (ARG)
is 102 in total.
I still haven't figured out what the best approach to solve this would be, but thought I'd toss it out here, in case someone was already familiar with the issue (and perhaps already has a fix).
Comments
Comment #1
ChrisKennedy commentedThat's what happens when you round percentages - it is standard and is not a bug. You can use the vote totals to calculate exact percentages if necessary.