News for hackers. Stuff that matters.
Re:What even is a JSON number? by akvadrako on Tuesday April 02, 2024 @06:49PM (#39911694)
Prices can certainly have more decimals that cents.

If you just store cents you can't represent them. You either have to guess at the beginning the smallest unit or store the precision along with it.

Just use strings, it's much simpler.

There are no comments on this comment yet.