modulo

raul mihaila raul.mihaila at gmail.com
Mon Sep 16 02:30:54 PDT 2013


Hello,

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.

Also, shouldn't ToUint32 and ToUint16 return only positive numbers? If the
argument is, for example, -3, the result will be -3 (assuming that the
modulo definition is wrong). Or maybe the argument will never be negative?

Raul M
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130916/aed19f88/attachment.html>


More information about the es-discuss mailing list