You are viewing a single comment's thread. Return to all comments →
why are you using %02d in outputs instead of %d?
It's for specified output format. %2d will output in 2 digits format and %02d will left pad the result with '0'.
Format Data Result
%d:%d 11,5 11:5
%2d:%2d 11,5 11: 5
%02d:%02d 11,5 11:05
is it like defining the set width ??
yeah, this minimum width will be ensured for output.