3 ms·
You are right dragonwriter and I am wrong (somewhat surprisingly). No, seriously, I'm sorry, I should think before I post. >Well, it has to do with the use of
by weinzierl 10y ago
You are right dragonwriter and I am wrong (somewhat surprisingly).
No, seriously, I'm sorry, I should think before I post.
>Well, it has to do with the use of binary floating point,
Binary floating point but fixed point also.
>which is the only kind of number in JavaScript, and the default non-integer type in many (but not all) other languages. OTOH, there are (though, given the historical relationship between CS and math, fewer than you'd think) languages that get basic arithmetic right, like Scheme.
I was thinking of Python Rationals and Mathematica but the Numerical Tower in Scheme seems even more interesting, never heard that concept before.