Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uwm.edu!uakari.primate.wisc.edu!aplcen!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: scanf doesn't work for variables of type double Message-ID: <11074@smoke.BRL.MIL> Date: 15 Sep 89 16:43:48 GMT References: <12988@uhnix1.uh.edu> Reply-To: gwyn@brl.arpa (Doug Gwyn) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 5 In article <12988@uhnix1.uh.edu> jsmng@csune.cs.uh.edu () writes: >According to K&R, %f for double should be allowed in scanf. Nope. %f is used for float, not double, in scanf format specs. Use %lf for double.