Python Get Decimal Places/Precision of Decimal

July 26, 2019
prec = abs(decimal.Decimal('7.55').as_tuple().exponent)
This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.