JS needs a modulo operator. It currently has the remainder operator `%`
which works in most cases except for negative values. I believe the the
`%%` would work great and be easy to remember.

let x = (-13) %% 64;
is equivalent to
let x = ((-13 % 64) + 64) % 64;
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to