Mail Archives: djgpp/1997/03/10/16:34:28
George Foot wrote:
> `float' numbers aren't that accurate; use `double's instead. Replace
> `float'
> with `double' throughout, and change `%.12f' to `%.12lf', and you should
> get
> the right answer.
The %.12f is correct; floats are automatically promoted to doubles in
function calls. %f is the printf specifier for double; there's only a
distinction between %f and %lf for floats and doubles, respectively, in
scanf.
--
Erik Max Francis, &tSftDotIotE / email: max AT alcyone DOT com
Alcyone Systems / web: http://www.alcyone.com/max/
San Jose, California, United States / icbm: 37 20 07 N 121 53 38 W
\
"I am become death, / destroyer of worlds."
/ J. Robert Oppenheimer (quoting legend)
- Raw text -