Hacker News new | ask | show | jobs
by dgunay 31 days ago
All of the data we control (in the database, in our apis, etc) is integer cents. When we have to interface with a system that represents money using JSON numbers as dollars.cents, we parse or serialize it into an arbitrary precision decimal type. Hasn't been much of a problem.
1 comments

This started out fine for us except that int32s were a bad idea and upgrading was painful
That's definitely valid, for b2c applications though a lot of the time you will never deal with numbers of that magnitude.