[Solved] Correct printf formats for double numbers in C


%e specifier is used to print value of float\double in exponential format.

So here %1.4e will print 1 digit before the decimal point and 4 digits after the decimal point.

So if bmax=12.242 then the output will be 1.2242e+01.

3

solved Correct printf formats for double numbers in C