Hacker News new | ask | show | jobs
by snuxoll 3716 days ago
Sure, but most other languages have built-in support for decimal types. Java has BigDecimal, as does Ruby, Python has the decimal module, C# has System.Decimal, the list goes on.

Javascript doesn't even have proper integers to guarantee the functioning of this correctly, it's a really sad state.

1 comments

>Javascript doesn't even have proper integers to guarantee the functioning of this correctly

I don't understand what you mean at all. Javascript should be able support a decimal library just as easily as a language with integers.