chap5 integer to string with base