# Can someone explain me the math behind polls?

**URL:** https://meta.discourse.org/t/can-someone-explain-me-the-math-behind-polls/35900
**Category:** Support
**Created:** [November 22, 2015, 9:13am UTC](https://meta.discourse.org/t/can-someone-explain-me-the-math-behind-polls/35900 "2015-11-22T09:13:20Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [November 22, 2015, 9:19am UTC](https://meta.discourse.org/t/can-someone-explain-me-the-math-behind-polls/35900/2 "2015-11-22T09:19:25Z")

</div>

Wasn’t this just fixed?

> [@Polls percentage accounting is not accurate](https://meta.discourse.org/t/polls-percentage-accounting-is-not-accurate/35772):
>
> It seems when calculating percentage for each option in polls Discourse uses floats truncating instead of rounding. This can result into inaccurate percentage values. For instance, a poll with 2 options, 11 voters and votes spread as 5 for the 1st option and 6 for the 2nd option indicates 45% and 54% which is 99% in total but should be 100%. The math looks to be the following: 100/11\*5 is 45.45, which rounded to 0 decimal places is 45, and also truncated to 0 decimal places is 45. 100/11\*6 is…

---

_[View the full topic](https://meta.discourse.org/t/can-someone-explain-me-the-math-behind-polls/35900)._
