Subj : Re: sprintf() problem ? To : borland.public.cpp.borlandcpp From : maeder@glue.ch (Thomas Maeder [TeamB]) Date : Thu Jul 10 2003 11:24 pm " Bruce Salzman" writes: > You should use "%lf" for a double and "%f" for a float variable. That would be for the *scanf() functions. *printf() functions don't need special support for float, since float arguments are promoted to double when passed to them. In printf(), the "%f" specifier is used for double arguments that are to be formatted like this: [-]ddd.ddd . .