
commit
2869b809f6
2 changed files with 12 additions and 0 deletions
@ -0,0 +1 @@ |
|||
__pycache__ |
@ -0,0 +1,11 @@ |
|||
import decimal |
|||
import fractions |
|||
|
|||
class Dec(decimal.Decimal): |
|||
def __Fraction__(self): |
|||
return self.__new__(self.numerator) / self.__new__(self.denominator) |
|||
|
|||
getcontext = decimal.getcontext |
|||
|
|||
class Frac(fractions.Fraction): |
|||
pass |
Loading…
Reference in new issue