3 ms·
Someone had linked on here a website that showed the 0.3 thing in practically almost every programming language and their output. I wish I could remember the do
by giancarlostoro 5y ago
Someone had linked on here a website that showed the 0.3 thing in practically almost every programming language and their output. I wish I could remember the domain / url cause it is interesting to compare languages defaults. I know most languages have ways to handle it correctly.
- onion2k 5y agoI know most languages have ways to handle it correctly. Including JS - http://mikemcl.github.io/decimal.js/ http://mikemcl.github.io/decimal.js/
- dvlsg 5y agoThere's a proposal to add a decimal type to the spec, too. https://github.com/tc39/proposal-decimal https://github.com/tc39/proposal-decimal Seems like it's a long ways away from being available, though.
- dvlsg 5y agohttps://0.30000000000000004.com/ https://0.30000000000000004.com/
- giancarlostoro 5y agoYes this is it! Thanks for that, I do appreciate that they show multiple approaches in each language to showcase which one gives you the desired result.