Number conversion in different base