[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

round() in glibc*2.3.3-31



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/ 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]