%f is the format string for a float, the single precision floating-point type. %lf is the format string for a double, the double precision floating-point type.