[gnu.gcc] HELP: Floating point constants

jk0@image.soe.clarkson.edu (Jason Coughlin) (08/30/89)

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