From: Jens Bischoff Message-Id: <9706051009.AA07816@hpaxe.bre.da> Subject: Re: Possible bug? To: mdruiter AT cs DOT vu DOT nl (Ruiter de M) (Ruiter de M) Date: Thu, 5 Jun 97 12:09:03 MESZ Cc: djgpp AT delorie DOT com In-Reply-To: <5n3i63$145@star.cs.vu.nl>; from "Ruiter de M" at Jun 4, 97 11:05 am Mailer: Elm [revision: 70.85] Precedence: bulk > > 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. > For information: On a HP-UX 715/80 workstation I get -?.000000 with both HP-C and GNU-C. The format statement (%f / %lf) doesn't matter. -- | | | Jens Bischoff | Email: j DOT bischoff AT airbus DOT dasa DOT de | | ---- +---------------+------------------------------------+ | | | Daimler-Benz Aerospace Airbus GmbH Aero Data Dept.| | Dasa-Airbus | Huenefeldstrasse 1-5 D-28199 Bremen (Germany) |