Adapting number to integers.