print(1/0);
0.000000000000001

Btw, the functions in mathlib.c at least check for NaN result. Is it
defined somewhere that standard C math library functions return NaNs
for errors? A quick man browsing only said they would set errno, but
nothing about the return value. (As I am using exceptions for
debugging, an argument check before the operation would be nice
anyway. Okay, I know, it costs performance.)

-- 
Csaba/Jester

------------------------------------------------------------------------------
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to