We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f32c16 commit 767fb0fCopy full SHA for 767fb0f
src/quicktions.pyx
@@ -515,9 +515,9 @@ cdef class Fraction:
515
if sign:
516
digits = -digits
517
if exp >= 0:
518
- return _fraction_from_coprime_ints(digits * pow10(exp), None, cls)
+ return _fraction_from_coprime_ints(digits * pow10(exp), 1, cls)
519
else:
520
- return _fraction_from_coprime_ints(digits, pow10(-exp), cls)
+ return cls(digits, pow10(-exp))
521
522
def is_integer(self):
523
"""Return True if the Fraction is an integer."""
0 commit comments