Page 1 of 1

Polls Math does not add up properly.

Posted: 5. August 2010 20:34
by contiw
Your Portal Version: 1.0.0RC3
Your phpBB Type: Premodded phpBB
MODs installed: Yes
Your knowledge: Beginner

What have you done before the problem was there?
Nothing

What have you already tryed to solve the problem?
Tried unsuccesfully to find code for calculating percentage.

Description and Message
I would like one or two decimals in the percentage.
It look like percentages are alway rounded by truncating the decimal.
In case of a poll with 6/7 options the tot percent get short even of 5 points.
The observer kind of lose faith in the poll.
Please advise how to do it.
Thank you.

Re: Polls Math does not add up properly.

Posted: 14. August 2010 06:42
by Jupiter
I found a rounding error a while back and it has still not been fixed.... Here is the thread where I fixed the problem.
Does this help your problem?

viewtopic.php?f=10&t=3057

Re: Polls Math does not add up properly.

Posted: 14. August 2010 07:03
by contiw
It did help. Thank You.
Although one decimal place would be more "scientific". :)
Thanks again.