1
0
Fork 0
flightgear/Simulator/Main/mtest.c
1999-04-05 21:32:32 +00:00

24 lines
302 B
C

#include <errno.h>
#include <math.h>
main() {
double x;
x = sqrt(-1);
if ( errno == EDOM ) {
printf("domain error\n");
}
printf("x = %.2f\n", x);
if ( x < 0 ) {
printf ("x < 0\n");
}
if ( x > 0 ) {
printf ("x > 0\n");
}
if ( x > -9999.0 ) {
printf ("x > 0\n");
}
}