The 2 has nothing to do with the $:
%= Start of format string4$= Fourth argument (‘d’)2= width of two (right-aligned)s= type of String
The 2 has nothing to do with the $:
% = Start of format string4$ = Fourth argument (‘d’)2 = width of two (right-aligned)s = type of String