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