For floating-point types.
%.nf is a decimal number with n digits reserved.
%m.nf is the n decimal places of the output, including decimal integer decimal places, accounting for m digits as a whole.