Unable to cast "09" of type string to int

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.

3 Likes