Skip to content

Fix output array dtype when computing the remainder #253

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
Sep 13, 2021

Conversation

asmeurer
Copy link
Member

@asmeurer asmeurer commented Sep 3, 2021

It stated that the return type should be floating-point, but it accepts
integer inputs (and the remainder of two integers is always an integer).

Somewhat related, I noticed that remainder doesn't specify any special cases, but it perhaps should specify the behavior for remainder by 0, and infinites. Also should integer remainder by 0 be unspecified?

It stated that the return type should be floating-point, but it accepts
integer inputs (and the remainder of two integers is always an integer).
@kgryte kgryte changed the title Fix error in remainder Fix output array dtype when computing the remainder Sep 13, 2021
Copy link
Contributor

@kgryte kgryte left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for catching this!

@kgryte kgryte added the bug Something isn't working. label Sep 13, 2021
@kgryte
Copy link
Contributor

kgryte commented Sep 13, 2021

Regarding the special cases mentioned in the OP, we should open a separate issue.

@kgryte kgryte merged commit 378255c into data-apis:main Sep 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants