Xref: utzoo comp.unix.microport:2997 comp.unix.questions:12295 Path: utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!cmcl2!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn ) Newsgroups: comp.unix.microport,comp.unix.questions Subject: Re: C bug causes double fault Message-ID: <9884@smoke.BRL.MIL> Date: 20 Mar 89 05:08:54 GMT References: <244@tree.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 16 In article <244@tree.UUCP> zarquon@tree.UUCP (Erin Filbert) writes: >main() >{ > float x; > printf("x = %d", x); >} You'll undoubtedly get a flood of responses correctly pointing out that conversion of a double (promoted float) argument according to an int format is incorrect. Use %g or some such format specifier. The reason I'm posting this is so I can include a plea not to post questions like this to comp.unix.wizards. That's what comp.unix.questions is for. UNIX-WIZARDS is for "wizardly" discussions (not that it gets very many, but that's what it's inteded for). Thanks.