Bug tracker

This ticket has been moved to our new tracker. Open Ticket PHPBB3-7644 now.

Poll displays incorrect percentages due missing round() function (fix completed in vcs)

if you have a poll with 2 options (say yes and no) and 2 voters vote no and 1 yes, it will show 33% yes and 66% no, which should be 33% yes and 67% no

Unless I'm looking at this wrong,
$option_pct_txt = sprintf("%.1d%%", ($option_pct * 100));

should be:
$option_pct_txt = sprintf("%.1d%%", round($option_pct * 100));

Comments / History

Linked ticket with changeset: r9010

Action performed by ToonArmy (Development Team Member) on Oct 13th 2008, 09:58

Changed ticket status from "New" to "Fix completed in SVN"

Action performed by ToonArmy (Development Team Member) on Oct 13th 2008, 09:58

Ticket details

Related SVN changesets