Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^5: accurately rounding numbers for percentages

by Trimbach (Curate)
on Aug 03, 2009 at 03:23 UTC ( [id://785329]=note: print w/replies, xml ) Need Help??


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

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
Trained Killer

Replies are listed 'Best First'.
Re^6: accurately rounding numbers for percentages
by derekn (Initiate) on Aug 03, 2009 at 05:00 UTC
    Ok. This is my first time to ever post on this board, and I may not know as much as you all do, which is why I posted here in the first place, to seek others' greater knowledge so that I might learn from them. I'm sorry if I sounded like I didn't LIKE any answers, because I assure you that was not the case. I just wanted to make sure that I made myself clear, as I wasn't sure that I had. After the replies you have shared with me, I will go with disclaimer. Derek
      Derek,
      Thanks for this nice note. Welcome to perlmonks! I will now abstain from making some obscure reference to the pain of receiving enlightenment, and merely wish you a lovely day.

      --spazm

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://785329]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2024-03-28 10:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found