Quote Originally Posted by newpat
so, is that right?
loud = loud.tostring("0000")
No, that's not what I meant....
What you have displayed on screen is just a string representation of the integer value. And you can not format an integer itself but rather its string representation. That's why you have to to convert the integer to string and then format that string.