I need some help with dividing a number(currency) by a divisor so I end up with even parts, and any cents left over needs to be divided also. So for an example 500/9 = 55.55555555555556, that's 55.55 with 0.05 left over to be divined among the first 5 results. I would like to end up with
55.56
55.56
55.56
55.56
55.56
55.55
55.55
55.55
55.55
This is a similar solution that i found divide number with decimals javascript but this one adds the change to the last result.