python-fractions

How to convert incredibly long decimals to fractions and back with high precision

How to convert incredibly long decimals to fractions and back with high precision Question: I’m trying to convert very large integers to decimals, then convert those decimals to Fractions, and then convert the Fraction back to a decimal. I’m using the fractions and decimal packages to try and avoid floating point imprecision, however the accuracy …

Total answers: 1