Mail Archives: djgpp/1997/06/05/03:20:54
Simun Mikecin (sime AT fly DOT cc DOT fer DOT hr) wrote:
: Philip Ibis (pibis AT host DOT hawk DOT igs DOT net) wrote:
: : double n;
: : memset(&n,0xFF,sizeof(double)); /* contrived, sure */
: : printf("%f\n",n);
: ^^
: Have you tried using %lf here?
Why? According to the docs, %hf is for floats, %f is for doubles and
%lf is for long doubles (what's that? same as doubles, for DJGPP?).
Scanf differs.
: P.S. I think that conforming to ANSI %f is for float, %lf for double and %Lf
: for long double. But since the way these are implemented on x86 platforms it
: ussualy works with any format.
Ummm, I don't think so. But then again, who am I? :)
--
Groeten, Michel. http://www.cs.vu.nl/~mdruiter
\----/==\----/
\ / \ / "Als je voetbalcriminaliteit wilt tegengaan,
\/ \/ moet je ophouden met voetballen", Nordholt.
- Raw text -