Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Be careful with JS numbers. Parent comment
Then add a decimal point when you display.
If you are dealing with stocks or interest I suggest storing tenths, or hundreds of a cent to avoid rounding errors.
Which is enough for even the united states national budget, let alone more prosaic uses.
Then add a decimal point when you display.
If you are dealing with stocks or interest I suggest storing tenths, or hundreds of a cent to avoid rounding errors.