Skip to content

Conversation

@hauntsaninja
Copy link
Contributor

@hauntsaninjahauntsaninja commented Dec 24, 2022

@hauntsaninja
Copy link
ContributorAuthor

The documentation guarantees that denominator is in lowest term. It doesn't make any explicit guarantee about being positive, but as_integer_ratio does and just returns the denominator. But do let me know if I should change to abs(self._denominator) == 1 or self._numerator % self._denominator == 0!

Copy link
Member

@JelleZijlstraJelleZijlstra left a comment

Choose a reason for hiding this comment

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

(But let's wait for Mark to also give feedback.)

Copy link
Member

@mdickinsonmdickinson left a comment

Choose a reason for hiding this comment

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

LGTM; one reST markup nitpick.

Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
@hauntsaninjahauntsaninja merged commit e83f88a into python:mainJan 1, 2023
@hauntsaninjahauntsaninja deleted the fraction-is-integer branch January 1, 2023 08:44
Sign up for freeto 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.

4 participants

@hauntsaninja@mdickinson@JelleZijlstra@bedevere-bot