What is the correct format specifier for double in printf? Is it %f or is it %lf? I believe it\'s %f, but I am not sure.<
double
%f
%lf
%Lf (note the capital L) is the format specifier for long doubles.
%Lf
L
For plain doubles, either %e, %E, %f, %g or %G will do.
doubles
%e
%E
%g
%G