Update information:
- bug fixes:
(1) Add decimals modulo ZeroDivisionError
(2) Catch a number not in “decimal” class - add sum function(
self.sum(var1,var2,*vars)
) - More accurate division. Uses
self / value
to keep 100 digits after the decimal point as a infinite decimal places. Usesdecimal(1) / decimal(7)
will return0.1428571428571428571428571428571428571428571428571428571428571428571428571428571428571428571428571423
. Or uses advanced functionself.placediv(othernum,places,last="round")
. Usesdecimal(19).placediv(decimal(16),2)
will return1.19
.