Skip to content

Add note concerning division by zero for integer dtypes in floor_divide and remainder #311

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 8, 2021

Conversation

kgryte
Copy link
Contributor

@kgryte kgryte commented Nov 4, 2021

This PR

  • resolves Specify zero division behavior #199 by adding a note to floor_divide and remainder concerning expected behavior when input arrays promote to an integer dtype. Namely, that the result of division by zero is implementation defined (e.g., throwing an error, emitting a warning and returning zero, or something else).

cc @asmeurer

@kgryte kgryte added the Maintenance Bug fix, typo fix, or general maintenance. label Nov 4, 2021
@kgryte kgryte added this to the v2021 milestone Nov 4, 2021
@kgryte kgryte requested review from asmeurer and removed request for asmeurer November 4, 2021 12:02
@kgryte
Copy link
Contributor Author

kgryte commented Nov 8, 2021

As the proposed changes in this PR do not change the status quo of the standard, but merely clarify unspecified behavior, will merge. Any subsequent revisions can be raised in a subsequent issue and addressed in a follow-up PR.

@kgryte kgryte merged commit 3a6d47f into main Nov 8, 2021
@kgryte kgryte deleted the int-div-by-zero branch November 8, 2021 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Maintenance Bug fix, typo fix, or general maintenance.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Specify zero division behavior
1 participant