modulo

Jason Orendorff jason.orendorff at gmail.com
Mon Sep 16 06:34:42 PDT 2013


On Mon, Sep 16, 2013 at 4:30 AM, raul mihaila <raul.mihaila at gmail.com> wrote:
> I think the definition of modulo is wrong.
> http://people.mozilla.org/~jorendorff/es6-draft.html#sec-5.2
> k should be of the same sign as x not as y.

It's the % operator that is wrong! Any mathematician can tell you what
modulo means.

(Of course nothing can be done about %. The wrongness was inherited
from Java, and it wasn’t invented for Java either...)

-j


More information about the es-discuss mailing list