For floating arguments, precision indicates how many digits are printed after decimal points. : printf Precision « printf scanf « C Tutorial






#include <stdio.h>
main()
{
    printf("%10.4e\n", 35.99999);
}
3.6000e+01








4.9.printf Precision
4.9.1.For floating arguments, precision indicates how many digits are printed after decimal points.
4.9.2.Precision
4.9.3.Using precision while printing integers, floating-point numbers, and strings