🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.lang.c
Article #9368

Re: Using SCANF with DOUBLE precision variables...

#9368
From: apn
Date: Mon, 22 Sep 1986 20:52
8 lines
984 bytes
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 ?
Technical Details
Message-ID: <108@nonvon.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!lll-crg!lll-lcc!qantel!ptsfa!gilbbs!nonvon!apn
References: <3672@brl-smoke.ARPA>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!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