Translating to numbers