Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!apple!motcsd!hpda!hpcuhb!hpcllla!hpclisp!hpclscu!shankar From: shankar@hpclscu.HP.COM (Shankar Unni) Newsgroups: comp.lang.c Subject: Re: scanf doesn't work for variables of type double Message-ID: <660060@hpclscu.HP.COM> Date: 19 Sep 89 20:59:12 GMT References: <12988@uhnix1.uh.edu> Organization: Hewlett-Packard Calif. Language Lab Lines: 13 > I posted a question about scanf last week. I could not scanf a double > careful enough. Using %lf and %F would have worked. Printf accepts %f ^^^ NO. Don't use "%F". It was a non-standard extension to K&R at best, and will not work at all for ANSI C (since %F is exactly equivalent to %f). Stick to %lf. ----- Shankar Unni E-Mail: Hewlett-Packard California Language Lab. Internet: shankar@hpda.hp.com Phone : (408) 447-5797 UUCP: ...!hplabs!hpda!shankar