Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rpi!image.soe.clarkson.edu!jk0 From: jk0@image.soe.clarkson.edu (Jason Coughlin) Newsgroups: gnu.gcc Subject: HELP: Floating point constants Message-ID: <1989Aug30.163448.23662@sun.soe.clarkson.edu> Date: 30 Aug 89 16:34:48 GMT References: <8908282109.AA01010@tiktok.rtp.dg.com> Sender: jk0@sun.soe.clarkson.edu (Jason Coughlin) Distribution: usa Organization: Clarkson University, Potsdam, NY Lines: 24 Our gcc is version is 1.35. I'm programming using ANSI-C, shouldn't the following be format of the floating point constant for 0? 0f+0 My Turbo-C handles this fine, but GCC won't accept this with the error message: "nondigits in number and not hexadecimal". Changing the 0f+0 to 0.0 alleviates the problem, but I think that makes it a double constant and not a float constant. Please EMAIL responses as I don't read this newsgroup. Thanks for your time. By the way, thanks for a wonderful compiler, debugger, and editor!! -- -- Jason Coughlin ( jk0@sun.soe.clarkson.edu , jk0@clutx ) "Every jumbled pile of person has a thinking part that wonders what the part that isn't thinking isn't thinking of." - They Might Be Giants