3 ms·
Integers will do no better at pretending to be a decimal type without a library.
by Dylan16807 11y ago
Integers will do no better at pretending to be a decimal type without a library.
- snuxoll 11y agoSure, 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.
- Dylan16807 11y ago>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.