Converts numbers of base 10 to number of base between 2 to 16.