Xref: utzoo comp.sys.amiga:67875 comp.sys.amiga.tech:14863 Path: utzoo!attcan!uunet!ogicse!oregon!jmeissen From: jmeissen@oregon.oacis.org ( Staff OACIS) Newsgroups: comp.sys.amiga,comp.sys.amiga.tech Subject: Re: Lattice C double Message-ID: <1@oregon.oacis.org> Date: 1 Oct 90 21:34:43 GMT References: <1990Sep28.063045.2599@ericsson.se> <1990Sep29.193407.28644@ux1.cso.uiuc.edu> Followup-To: comp.sys.amiga Organization: Oregon Advanced Computing Institute (OACIS) Lines: 18 In article <1990Sep29.193407.28644@ux1.cso.uiuc.edu> ragg0270@uxa.cso.uiuc.edu (Richard Alan Gerber) writes: >A further SAS/C double question (since I can't get hold of them on the >weekend). [....] >n = fscanf(fp,"%e%e%e\n",num1,num2,num3); > >This works like a charm. But when I replace "float" with "double" >everywhere it gives me total garbage. You also need to change the format string, since it still assumes it is storing a 32-bit quantity instead of a 64-bit quantity. I believe it is "%le%le%le". -- John Meissen .............................. Oregon Advanced Computing Institute jmeissen@oacis.org (Internet) | "That's the remarkable thing about life; ..!sequent!oacis!jmeissen (UUCP) | things are never so bad that they can't jmeissen (BIX) | get worse." - Calvin & Hobbes