Skip to content

canonical modulus #7190

Closed
Closed

Description

"However, the behavior is the same for positive dividends."
What behavior?
Can someone clarify?


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Activity

  1. rpetrusha commented on Aug 23, 2018

    @rpetrusha
    Contributor

    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.

  2. pkulikov commented on Aug 23, 2018

    @pkulikov
    Contributor

    @johnnyagerard the discussion in #4827 might be helpful

  3. self-assigned this
    on Aug 23, 2018
  4. rpetrusha commented on Aug 23, 2018

    @rpetrusha
    Contributor

    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.

  5. pkulikov commented on Aug 24, 2018

    @pkulikov
    Contributor

    @rpetrusha I would like to update the article next week, if @johnnyagerard is fine with that.

  6. rpetrusha commented on Aug 24, 2018

    @rpetrusha
    Contributor

    Thanks, @pkulikov. I've assigned the issue to you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions