%02d - String Formatting


#1

Hello,
I’d like to ask some question regarding the “padding” of a variable that is an integer.

Does the 0 in the operator “padding” zeroes mean that it’s adding zeroes to the integer?
What does it mean to pad to 2 characters wide? Also, can the operator use other values, like 3 or 4?
Lastly, what does the number being a signed integer mean?

Thank you very much!

Strings and Console Output


#2

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.