logoalt Hacker News

benjaminoakesyesterday at 7:12 PM1 replyview on HN

Don't many financial transactions in US dollars get stored as integers anyway? The number of pennies, in other words.

Then just convert to dollars with a decimal place when needing to display, etc.

I recall this being pretty normal regardless of what database you use.


Replies

fermuchtoday at 12:01 AM

A lot of times they are converted to BigInt and then stored as strings so different languages don't mess with the real value