You Double-click The Format Painter Button When You Want To

"%f" is the (or at least one) correct format for a double. There is no format for a float, because if you attempt to pass a float to printf, it'll be promoted to double before printf receives it 1. "%lf" is also acceptable under the current standard -- the l is specified as having no effect if followed by the f conversion specifier (among others). Note that this is one place that printf format ...

you double-click the format painter button when you want to 1