How do you expect a balance of 30.76 when summing 10.12, 10.22 and 10.32? Either your input is wrong or your output is wrong or your spec of the task is wrong.
The whole thing seems highly related to How to loop through hash of hashes and add the values based on condition? - have you tried applying what you learned there to this task? What code have you written for this? Where are you stuck?
In reply to Re: How to combine the values from hash using 'cname', along with total and balance.
by hippo
in thread How to combine the values from hash using 'cname', along with total and balance.
by Sami_R
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |