Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!husc6!cmcl2!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.UUCP Newsgroups: comp.lang.c Subject: Re: Problems with PRINTF, for some ungodly reason... Message-ID: <5886@brl-smoke.ARPA> Date: Tue, 26-May-87 18:14:49 EDT Article-I.D.: brl-smok.5886 Posted: Tue May 26 18:14:49 1987 Date-Received: Wed, 27-May-87 06:49:22 EDT References: <7527@brl-adm.ARPA> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 12 In article <7527@brl-adm.ARPA> DAVE%UWF.BITNET@wiscvm.wisc.EDU writes: >the %lf, but I also tried %f, %g, and %G, mostly in desperation. %f and %g are the right things to try; since they didn't work, one concludes that your Lattice C implementation either doesn't support them at all or supports them in some funny way. You might check whether there's a separate floating-point support library you need to use that includes a more capable printf(). Note that %lf is not necessary, since it is not possible for printf() to receive a (float) (it would be coerced to a (double) when printf() is called).