As it’s been said before int treats the number as octal, so you only get 0…7 symbols.
See this thread for more info and how to remove the zeros.
I ain’t got a clue how you could convert the 9 decimal to its octal value with existing Hugo functions.