round() in glibc*2.3.3-31

Mark Fonnemann markf78 at yahoo.com
Sun May 30 02:27:57 UTC 2004


Hello-

    does anyone know why round() does not work correctly in a C program without
using the compiler flag "-std=c99". any program will compile correctly without
any warnings in gcc but then the function will return garbage data unless the
flag is added during compilation. there's no mention of this in the man page...
i only discovered this by googling and then finding this response
"http://gcc.gnu.org/ml/gcc-bugs/2004-01/msg02169.html".  is this a problem with
the glibc package in Fedora? i feel this is either a bug or something that
should be documented in a man page somewhere.. and yes, to mention the obvious,
i did #include <math.h> in my source and also compiled in gcc with the -lm
option. thanks everyone...

mark. :-)



	
		
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 





More information about the test mailing list