Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on What even is a JSON number?. Parent comment
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.
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.