baseconvert
baseconvert copied to clipboard
Convert any rational number, from any (positive integer) base, to any (positive integer) base.
I'm having a problem when running my code that uses: from fractions import gcd I think in Python3.9 it should be: from math import gcd
This PR adds support for python 3.9 without breaking backward compatibility with versions below 3.9. https://stackoverflow.com/questions/66174862/import-error-cant-import-name-gcd-from-fractions

Since this module only deals in rational numbers, and positional representation of all rational numbers either terminate or repeat with a finite period, it ought to be possible to specify...
It is quite often needed when dealing with bases.
Hi! I'm the developer of the justbases package: https://github.com/mulkieran/justbases. I developed it in support of the justbytes package: https://github.com/mulkieran/justbytes. justbases is a package with a very narrow focus, but what...