Can someone explain to me why JavaScript doesn't have a simple money type?
I am bashing around the walls with currencies in JavaScript.
Can someone explain to me why JavaScript doesn't have a simple money type?
I am bashing around the walls with currencies in JavaScript.
"money" isn't a universal concept - fiat currencies range in value across the globe, and cryptocurrencies are far more varied. how would you specify that?
You may be interested in the proposal to add decimals to JavaScript: GitHub - tc39/proposal-decimal: Built-in exact decimal numbers for JavaScript