Convert between different number bases.