4 ms·
Java has BigDecimal. Python has a decimal and a fraction class. I’m assuming C# has something apart of their standard library as well. And JS/TS has third party
by MichaelNolan 4y ago
Java has BigDecimal. Python has a decimal and a fraction class. I’m assuming C# has something apart of their standard library as well. And JS/TS has third party libraries that can for arbitrary length precision math as well.
- MuffinFlavored 4y agoThank you. I had a feeling I was wrong. So just JavaScript has BigInt/BigDecimal https://stackoverflow.com/questions/16742578/bigdecimal-in-javascript https://stackoverflow.com/questions/16742578/bigdecimal-in-j..., interesting
- int_19h 4y agoC# has it as part of the language itself, with keyword for the type and a special literal syntax for it: decimal n = 123.456m;