MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/javascript/comments/9kpvnf/money_in_javascript/e7242hq/?context=3
r/javascript • u/timleland • Oct 02 '18
4 comments sorted by
View all comments
4
Just use decimal.js. It works great.
3 u/pilotInPyjamas Oct 02 '18 Is it just me, or wouldn't it be easier to just measure everything in cents and use integers? Nobody has $251 and then you don't need an additional library or learn a new api -1 u/Rhyek Oct 02 '18 Probably just you! 🙂
3
Is it just me, or wouldn't it be easier to just measure everything in cents and use integers? Nobody has $251 and then you don't need an additional library or learn a new api
-1 u/Rhyek Oct 02 '18 Probably just you! 🙂
-1
Probably just you! 🙂
4
u/Rhyek Oct 02 '18
Just use decimal.js. It works great.