forgot to mod rmul
This commit is contained in:
parent
369c2cd77a
commit
b0ca85a029
@ -211,9 +211,7 @@ class Fraction(object):
|
|||||||
return steps
|
return steps
|
||||||
|
|
||||||
def __rmul__(self, other):
|
def __rmul__(self, other):
|
||||||
number = self.convert2fraction(other)
|
return self * other
|
||||||
|
|
||||||
return number * self
|
|
||||||
|
|
||||||
def __truediv__(self, other):
|
def __truediv__(self, other):
|
||||||
if other == 0:
|
if other == 0:
|
||||||
|
Loading…
Reference in New Issue
Block a user