#014014: Webin: poll.tpl - The rounding on information collection is too optimistic

Description:

design/ezwebin/templates/content/collectedinfo/poll.tpl:57


{set $percentage = cond( $total_count|gt( 0 ), round( div( mul( $item_count, 100 ),$total_count ) ), 0 )}

With this


{set $percentage = cond( $total_count|gt( 0 ), div( mul( $item_count, 100 ), $total_count ), 0 )}

Environment:

Operating System:
PHP Version: (please be specific, like '4.4.3' or '5.1.5')
Database and version:
Browser (and version):


Steps to Reproduce:

Create a Poll with a yes/no question
1) Select that object
2) Answer 5 times "yes" to the binary question
3) Anwser 3 times "no" to the binary question
4) View the stats, and check the percentage of "yes" and "no"

Expected results:
62,5% of "yes" and 37,5% "no" => 100%.

Actual results
63% of "yes" and 38% "no" => 101%.


- Attachments

No attachments for this issue.


- Comments

No comments for this issue.


- History
Properties
Type Bug
Priority Medium
Components Extensions
Extensions » Website Interface
Affects ezwebin 1.2-1
ezwebin 1.3
Fix Version Future
Reporter Rune Langseid
Responsible -
Status 0 New
Resolution UNRESOLVED
Created November 26th, 2008
Updated July 1st, 2009
Resolved -
 
Navigation [Permanent Link]
Previous Issue
Back to Issues List
Next Issue: #019127
  DB Deadlocks on ezcontentobject_tree when updating subnode