So I\'ve decided to try to solve my physics homework by writing some python scripts to solve problems for me. One problem that I\'m running into is that significant figures
If I undertand Decimal correctly, the "precision" is the number of digits after the decimal point in decimal notation.
You seem to want something else: the number of significant digits. That is one more than the number of digits after the decimal point in scientific notation.
I would be interested in learning about a Python module that does significant-digits-aware floating point point computations.