News for hackers. Stuff that matters.
Re:0.30000000000000004 by jacobolus on Sunday April 02, 2017 @06:16PM (#14019368)
There are a huge pile of libraries for doing bignum, rational, fixed point, decimal, complex, vector, polynomial, symbolic, etc. math in Javascript. If you want you can even write one for 7-adic arithmetic, Eisenstein integers, numbers expressed in the golden ratio base, or points on the surface of a torus.

There’s no language that can build in all possible number systems, and it’s not really the place of a language to try.

It would be nice if JavaScript made a better type distinction between integers and floats though.

Re:0.30000000000000004 by mcculley on Sunday April 02, 2017 @06:49PM (#14019485)
Yes, every Turing complete language can build integers and other types of numbers atop floating point numbers if necessary. That doesn't make it any less broken.