home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!tulane!spool.mu.edu!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!torn!utgpu!attcan!telly!druid!pseudo!mjn
- From: mjn@pseudo.uucp (Murray Nesbitt)
- Newsgroups: comp.lang.c
- Subject: Re: Help!!! Please Read this message!?!?!?!?!...
- Message-ID: <MJN.92Sep11001608@pseudo.uucp>
- Date: 11 Sep 92 08:16:08 GMT
- References: <mcook.715979137@melkur.dev.cdx.mot.com> <1992Sep9.043345.15040@nuscc.nus.sg>
- <1992Sep9.085352.8755@vax.oxford.ac.uk>
- <1992Sep10.040600.27065@blaze.cs.jhu.edu>
- Sender: mjn@pseudo.uucp (Murray Nesbitt)
- Organization: Private system in Toronto, ON
- Lines: 15
- In-Reply-To: wilson@rhombus.cs.jhu.edu's message of Thu, 10 Sep 1992 04:06:00 GMT
-
-
- wilson@rhombus.cs.jhu.edu (Dwight Wilson) writes:
-
- >Huh? "%f" specifies a double not a float. If you think about the
- >promotion rule you'll realize that specifying a float would be
- >nonsensical since it is not possible for an argument to printf()
- >to be passed as a float!
-
- printf( "%f...%s?\n", (float)f, "Huh?" );
-
- It's another matter whether you'd *want* to pass a float to printf(),
- but it is possible.
-
- --
- Murray
-