Devices capable of handling different types of numbers