Complete base10() and convertToBinary().