Ever wondered about #arithmetics in #JavaScript?

"For the most part, Javascript #numbers are double-precision floating point, so need to be treated the same as you would floating point numbers in any other language.

However, Javascript also provides bitwise and #shift operations, which first convert the operands to 32-bit #signed 2s-complement values. This can have #surprising consequences when either the input or result has a magnitude of more than 231."

https://accu.org/journals/overload/23/128/williams_2138/

Numbers in JavaScript

JavaScript floating point numbers can confuse C++ programmers. Anthony Williams draws our attention to some surprising behaviour.

re-reading @neauoire

Arithmetics is the study of numbers, especially the properties of the traditional operations on them

https://wiki.xxiivv.com/site/arithmetic.html

#mathematics #arithmetics #wiki

XXIIVV — arithmetic