Xref: utzoo comp.sys.amiga:67403 comp.sys.amiga.tech:14751 Path: utzoo!attcan!uunet!mailrus!iuvax!ux1.cso.uiuc.edu!uxa.cso.uiuc.edu!ragg0270 From: ragg0270@uxa.cso.uiuc.edu (Richard Alan Gerber) Newsgroups: comp.sys.amiga,comp.sys.amiga.tech Subject: Re: Lattice C double Message-ID: <1990Sep29.193407.28644@ux1.cso.uiuc.edu> Date: 29 Sep 90 19:34:07 GMT References: <1990Sep28.063045.2599@ericsson.se> Sender: news@ux1.cso.uiuc.edu (News) Organization: University of Illinois at Urbana Lines: 24 A further SAS/C double question (since I can't get hold of them on the weekend). I am reading an ASCII file that contains columns of data w/ a construct like: FILE *fp; float *num1,*num2,*num3; int n; [...] num1 = (float *)AllocMem(sizeof(float), MEMF_PUBLIC|MEMF_CLEAR); etc... 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. I don't know if the problem is with me (programming error), compiler settings or a compiler bug. Thanks for any help. Richard Gerber gerber@rigel.astro.uiuc.edu