8 ms·
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 number
by dgunay 3mo 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.