logoalt Hacker News

dgunaylast Saturday at 10:03 PM1 replyview on HN

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.


Replies

foobarianyesterday at 2:22 AM

This started out fine for us except that int32s were a bad idea and upgrading was painful

show 1 reply