Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That seems super dumb indeed. I really wish JSON had an actual decimal type, we already have valid "e" notation (like 10e2), why not have a "d" notation, like 5d3 (meaning 5.3) or 5.3d.



All amounts in this library are in base units (whole numbers) and no arithmetic is used!

For financial calculations I recommend using Dinero.js


So 1 euro is written as 100?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: