Skip to content
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

pow(0, 0) returns 1. #77

Closed
meltinglava opened this issue Jul 18, 2018 · 2 comments
Closed

pow(0, 0) returns 1. #77

meltinglava opened this issue Jul 18, 2018 · 2 comments

Comments

@meltinglava
Copy link

meltinglava commented Jul 18, 2018

pow(0, 0) should be undefined. Should probably panic in pow(0, 0), and return None in checked_pow(0, 0).

@meltinglava
Copy link
Author

meltinglava commented Jul 18, 2018

Tried to fix this, thow could not figure out how to compare the base argument with zero. base
edit: Zero implements is_zero()

@cuviper
Copy link
Member

cuviper commented Sep 17, 2018

Documented in #79.

@cuviper cuviper closed this as completed Sep 17, 2018
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

No branches or pull requests

2 participants