1
0
Fork 0
flightgear/src/Main/mtest.c
Tim Moore c90db01dc8 source tree reorganization prior to flightgear 0.7
SimGear and TerraGear appear to have been split off at this time.
2009-09-14 14:26:20 +02: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");
}
}