4 ms·
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 5
by RedShift1 2y ago
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.
- wiktor-k 2y agoYes! Something similar to https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
- svapnil 2y agoAll amounts in this library are in base units (whole numbers) and no arithmetic is used! For financial calculations I recommend using Dinero.js
- RedShift1 2y agoSo 1 euro is written as 100?