number_codes(Number, CodeList) works exactly as number_chars/2, but using number codes instead the number themselves to express Number.