Added (integer-digits) helper function