Add -f for Fraction
This commit is contained in:
parent
8a41031fa8
commit
999fde1c51
@ -127,6 +127,9 @@ class Fraction(object):
|
||||
|
||||
return steps
|
||||
|
||||
def __neg__(self):
|
||||
return [Fraction(-self._num,self._denom)]
|
||||
|
||||
def __mul__(self, other):
|
||||
if type(other) == Fraction:
|
||||
#cool
|
||||
|
Loading…
Reference in New Issue
Block a user