Num to base10, base10 to new base conversion.