%f: Floating point : printf float « printf scanf « C Tutorial






#include <stdio.h>
main()
{
    float f = 10.9999;
    printf(" %f\n",f);
}
10.999900








4.7.printf float
4.7.1.%f: Floating point
4.7.2.Floating-Point Input: %f
4.7.3.Floating-Point Input: %e %g %f