How to convert an integer to a string in any base?

If you need compatibility with ancient versions of Python, you can either use gmpy (which does include a fast, completely general int-to-string conversion function, and can be built for such ancient versions – you may need to try older releases since the recent ones have not been tested for venerable Python and GMP releases, only … Read more

How can I convert a number from base 8 to base 10?

To convert any base to base 10 just do the following: For every digit in the different base multiply that by the base and digit. For example: Works for any base … binary, hex, you name it just do that and it will convert to base 10.

JSLint says “missing radix parameter”

It always a good practice to pass radix with parseInt – For decimal – If the radix parameter is omitted, JavaScript assumes the following: If the string begins with “0x”, the radix is 16 (hexadecimal) If the string begins with “0”, the radix is 8 (octal). This feature is deprecated If the string begins with … Read more