Yeah, this immediately broke my idea of only dealing with cents and integers. All of a sudden I wanted to price something $0.001 and it all came crashing down.
As the parent says it's the unit price (with quantity of millions) so the end amount will be rounded but all the steps before that need to be able to handle fractions.