http://www.perlmonks.org?node_id=785301


in reply to Re^2: accurately rounding numbers for percentages
in thread accurately rounding numbers for percentages

That's not what Trimbach said, by a long shot.

If you add the UNrounded numbers percentages, they should total 100% (except for the fact that you'll sometimes run into value/count pairs that are rounded at the end of whatever length decimal value you use: 100/6, for example).

But, for cases such as I infer yours is, a quite standard and commonly accepted practice is to include the disclaimer "Totals may not equal 100% because of rounding."

Update: For clarity (in light of OP's next reply), s/numbers/percentages/ at strikeout above.