Jan-13-2017, 07:09 AM
Jan-13-2017, 07:28 AM
Why do you want to divide decimal to float? If you need a precision try gmpy2
https://gmpy2.readthedocs.io/en/latest/mpfr.html
https://gmpy2.readthedocs.io/en/latest/mpfr.html
Jan-13-2017, 08:53 AM
just initializing some decimal.Decimal values and one of them needed to be a ratio of another, initially, and that ratio was a float even though its actual value was whole, initially, e,g rat = 5.0, so foo = foobar/rat failed and foo = foobar/decimal.Decimal(rat) got around it.