Fix the sums that come out one yen off, with integers and Decimal
A price with tax comes out one yen too high; a split bill doesn't add up to the bill. You check float error, round()'s round-half-to-even, rounding rules and leftover yen one at a time with real numbers, then write a largest-remainder function whose shares always add up, and pin it down with tests.