[BUG] Summary view proportions don't add up to 100%
Closed this issue · 2 comments
MaxWohlers commented
Issue Summary
In the summary view for Multiple-Choice Single-Select Question, the proportions do not always add up to 100%, but to 101% for example, most likely due to an rounding error.
Steps to Reproduce
- Have Multiple-Choice Single-Select Question
- Get numerous responses with various choice proportions
- Go to Summary tab
- Get wrong total proportions due to rounding error
Expected behavior
No rounding error
Other information
No response
Screenshots
Environment
- Formbricks Cloud (app.formbricks.com)
- Self-hosted Formbricks
Desktop (please complete the following information)
- OS:
- Node:
- npm:
jonas-hoebenreich commented
How would you fix that? By using more decimal places (and thus reducing the rounding error, but it may still not add up to 100%). Or by deliberately rounding incorrectly to force 100% (but then displaying mathematically incorrect numbers)?
mattinannt commented
@MaxWohlers @jonas-hoebenreich We will add another decimal to make the numbers more accurate :-)