Mail Archives: djgpp/1997/06/05/06:07:32
>
> 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 |
| --<O>-- +---------------+------------------------------------+
| | | Daimler-Benz Aerospace Airbus GmbH Aero Data Dept.|
| Dasa-Airbus | Huenefeldstrasse 1-5 D-28199 Bremen (Germany) |
- Raw text -