The general form of format specifier for floating point value:

Incorrect

m%.nf

Incorrect

m.n%f

Correct

%m.nf

Incorrect

m.n%