Can this be looked at again? This seems to be more complicated than it needs to be to end up with a wrong number.
It looks like the math is the following:
1. Get the pre-discount cart item total * the percent discount
(so in the original example, it would be $194.75 * .10 = 19.475)
2. Take the result from number 1 and divide it by the quantity to get the discount per item, truncated to two decimal places if the third decimal is 5 or lower, or round to two decimal places if the third decimal is greater than 5
(19.475/205 = .095 truncated to .09)
3. Take the result from #2 and multiply it back by the quantity to get a different answer from #1
(so .09*205) = $18.45
Why are steps 2 and 3 necessary? If it's necessary to calculate the discount per item, is the rounding correct? Why is .095 truncated to .09 and not rounded to .1?