convert base of a number