Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!mephisto!udel!mmdf From: R_MCINTI%UNHH.BITNET@mitvma.mit.edu Newsgroups: comp.sys.amiga Subject: Lattice atof() Bug? Message-ID: <29545@nigel.ee.udel.edu> Date: 5 Sep 90 19:50:15 GMT Sender: mmdf@ee.udel.edu Lines: 12 > 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!