Think about Loose Coupling | |
PerlMonks |
Re^5: accurately rounding numbers for percentagesby Trimbach (Curate) |
on Aug 03, 2009 at 03:23 UTC ( [id://785329]=note: print w/replies, xml ) | Need Help?? |
So do what ww said and simply put a disclaimer about the numbers being rounded and not necessarily adding up to 100%.
You can't introduce error to your numbers via rounding and then magically expect that error to disappear and have everything add up to 100 all the time. People are smart enough to understand rounding errors if you add a comment to that effect. Gary Blackburn
In Section
Seekers of Perl Wisdom
|
|