Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!caip!think!nike!lll-crg!seismo!umcp-cs!chris From: chris@umcp-cs.UUCP (Chris Torek) Newsgroups: net.lang.c Subject: Re: Using SCANF with DOUBLE precision variables... Message-ID: <3636@umcp-cs.UUCP> Date: Wed, 1-Oct-86 01:08:07 EDT Article-I.D.: umcp-cs.3636 Posted: Wed Oct 1 01:08:07 1986 Date-Received: Fri, 3-Oct-86 08:38:28 EDT References: <9939@cgl.ucsf.edu.ucsfcgl.UUCP> Reply-To: chris@umcp-cs.UUCP (Chris Torek) Organization: University of Maryland, Dept. of Computer Sci. Lines: 15 In article <9939@cgl.ucsf.edu.ucsfcgl.UUCP> kneller@cgl.ucsf.edu.UUCP (Don Kneller%Langridge) writes: >[In the] Silicon Graphics [compiler] floats and doubles are the same >size so one must use %f for both. The "justification" is that they >have yet another floating point type called long float with gets the >%lf format. It's painfully nonportable. Sigh. Indeed. It may be too late now, but they should have used `long double', and perhaps `%llf'. `long float' is an alias for `double' (per K&R p. 193). (The arrogation of `%lf' is to me more distressing than that of `long float'.) -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 1516) UUCP: seismo!umcp-cs!chris CSNet: chris@umcp-cs ARPA: chris@mimsy.umd.edu