Skip to content

Revised remainder operator docs - #7464

Merged
BillWagner merged 1 commit into
dotnet:masterfrom
pkulikov:update-remainder-operator
Sep 4, 2018
Merged

BillWagner merged 1 commit into
dotnet:masterfrom
pkulikov:update-remainder-operator

Conversation

@pkulikov

@pkulikov pkulikov commented Sep 3, 2018 •

Copy link
Copy Markdown
Contributor

I agree with this comment, so I've removed any mention of the canonical modulus from the remainder docs. Instead of overloading the article with the mathematical terms, I prefer to define what the remainder operator actually does as clear as possible. So, the edition suggested by this PR is heavily based on the language spec.

Also, added relevant links to the Math.DivRem and Math.IEEERemainder methods.
At last, moved the snippets to the samples repo.

Supported by dotnet/samples#283

Fixes #7190

@rpetrusha

Copy link
Copy Markdown
Contributor

Closing and reopening to begin new build.

@rpetrusha rpetrusha closed this Sep 4, 2018
@rpetrusha rpetrusha reopened this Sep 4, 2018

@BillWagner BillWagner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this change @pkulikov

I'll :shipit: now.

Note: I checked the C# Spec, and the spec uses the term remainder operator so this change is consistent with the language used in the C# specification.

Thanks again @pkulikov

@BillWagner
BillWagner merged commit db2c766 into dotnet:master Sep 4, 2018
@pkulikov
pkulikov deleted the update-remainder-operator branch September 4, 2018 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants