logoalt Hacker News

FabHKtoday at 3:17 PM1 replyview on HN

But it's a good idea to keep those values distinct from actual money. You can't pay a fraction of a cent to anyone.


Replies

fauigerzigerktoday at 4:52 PM

But the price of some unit of a commodity may well be expressed in smaller fractions to allow for small price changes.

You could argue that a price is not really an amount that anyone can actually pay and that's true. But it seems complex and error prone to store unit prices and amounts using different scaling factors.