]> git.mxchange.org Git - flightgear.git/blob - src/Main/mtest.c
Added FGScript.{cpp,h}
[flightgear.git] / src / Main / mtest.c
1 #include <errno.h>
2 #include <math.h>
3
4 main() {
5   double x;
6
7   x = sqrt(-1);
8   
9   if ( errno == EDOM ) {
10      printf("domain error\n");
11   }
12
13   printf("x = %.2f\n", x);
14
15   if ( x < 0 ) {
16         printf ("x < 0\n");
17   }
18   if ( x > 0 ) {
19         printf ("x > 0\n");
20   }
21   if ( x > -9999.0 ) {
22         printf ("x > 0\n");
23   }
24 }