Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!lll-crg!lll-lcc!qantel!ptsfa!gilbbs!nonvon!apn From: apn@nonvon.UUCP (apn) Newsgroups: net.lang.c Subject: Re: Using SCANF with DOUBLE precision variables... Message-ID: <108@nonvon.UUCP> Date: Mon, 22-Sep-86 16:52:06 EDT Article-I.D.: nonvon.108 Posted: Mon Sep 22 16:52:06 1986 Date-Received: Tue, 23-Sep-86 04:23:05 EDT References: <3672@brl-smoke.ARPA> Organization: Nonvon Systems Computer Research Group Lines: 8 Summary: ftoa In article <3672@brl-smoke.ARPA>, DAVE%UWF.BITNET@WISCVM.WISC.EDU writes: > I have been wanting to read in some real numbers, preferably thru SCANF, but I > get nothing but 0.000 returned when i try to put the result of a SCANF in a var > declared as DOUBLE. The only thing that I could think of was either writing my > own algorithm, or reading the number in as FLOAT and storing it in the DOUBLE What about using atof to read in the float ?