Ad
  • Default User Avatar

    Numbers from 0 to 9 are encoded 48 to 57 in the ASCII table.

    This code will work fine except when you have very very big numbers.
    e.g. imagine that the 53rd digit (i = 52) was 3. Well, ASCII of 3 is 51, which is less than 52.