Hacker News new | past | comments | ask | show | jobs | submit login

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.




Yes 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.


I know most languages have ways to handle it correctly.

Including JS - http://mikemcl.github.io/decimal.js/


There's a proposal to add a decimal type to the spec, too.

https://github.com/tc39/proposal-decimal

Seems like it's a long ways away from being available, though.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: