Base Convert and Base Encode

Base Convert Base conversion is a very basic skill in programming. I was taught converting between decimal(base-10) and binary(base-2), decimal(base-10) and octal(base-8), decimal(base-10) and hexadecimal(base-16), and of course among base 2-powered numbers(pow(2,n)). The conversion is quite simple, division is the only arithmetic operation we need. If we want to convert a base-m number to a … Continue reading “Base Convert and Base Encode”