You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What it intends to say, @johnnyagerard, is that the remainder operation produces the same result as the modulus operation for positive dividends, but a different result for negative dividends. It may be much clearer, though, to note that % performs a remainder operation and not a canonical modulus operation.
I think at a minimum that we eliminate the ambiguity of "the behavior is the same for positive dividends". I'll assign this to myself for a future sprint. If either of you would like to do it in the meantime, @pkulikov and @johnnyagerard, please go ahead.
Activity
rpetrusha commentedon Aug 23, 2018
What it intends to say, @johnnyagerard, is that the remainder operation produces the same result as the modulus operation for positive dividends, but a different result for negative dividends. It may be much clearer, though, to note that
%performs a remainder operation and not a canonical modulus operation.pkulikov commentedon Aug 23, 2018
@johnnyagerard the discussion in #4827 might be helpful
rpetrusha commentedon Aug 23, 2018
I think at a minimum that we eliminate the ambiguity of "the behavior is the same for positive dividends". I'll assign this to myself for a future sprint. If either of you would like to do it in the meantime, @pkulikov and @johnnyagerard, please go ahead.
pkulikov commentedon Aug 24, 2018
@rpetrusha I would like to update the article next week, if @johnnyagerard is fine with that.
rpetrusha commentedon Aug 24, 2018
Thanks, @pkulikov. I've assigned the issue to you.