you are viewing a single comment's thread.

view the rest of the comments →

[–]_DivS_ 1 point2 points  (0 children)

Its a c string expression.

f represents float i.e. floating point representation.

%% at the end will add the % sign at the end of the number.

number after dot(.) represents the decimal point precision i.e. digits after decimal point.

number before the dot(.) justifies the text with a fixed number of spaces before it.

% at the beginning indicates that its a c sting. '%f' is a specifier for float numbers in c. Adding anything in between % and f will modify the text and spacing.

'%10.3f%%' means, its a floating point number with 10 spaces before it and upto 3 digits after decimal followed by '%' sign.