Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!julius.cs.uiuc.edu!apple!snorkelwacker!ira.uka.de!fauern!trantor!akk From: akk@trantor.informatik.uni-erlangen.de (Andreas K. Klingler) Newsgroups: comp.sys.amiga Subject: Re: Lattice atof() Bug? Message-ID: Date: 7 Sep 90 17:42:36 GMT References: <29545@nigel.ee.udel.edu> Lines: 20 In article <29545@nigel.ee.udel.edu> R_MCINTI%UNHH.BITNET@mitvma.mit.edu writes: >> regarding the atof() problem in lattice "C" > >The atof() seems to work fine; the difficulty is in the >printf() routine. I beleive with many vendors there are >two seperate printf() functions; one for interger math , and >one for double precision. It is perhaps the latter function >that is too blame - in fact it may not exist - which would explain >why when you write printf("%f",double_number) you end up with "%f" >on the screen since the first function is unaware of the %f option, therefore >treats it as though it is a string. > >To sum up - Yeah I think it's a bug and it has been bothering me for some time! Try linking with a math library e.g. lcm.lib. This should solve your 'bug'. -- Andreas Klingler akk@trantor.informatik.uni-erlangen.de A business is no business until you have shown the revenue office it was no business