1
0
Fork 0
flightgear/tests/est-epsilon.c
curt 43e48070fe - Some refactoring of the configure.ac script.
- Better Mac OS X support (they put glut.h in GLUT/glut.h) :-(
2002-12-10 20:50:48 +00:00

30 lines
366 B
C

#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#ifdef HAVE_WINDOWS_H
# include <windows.h>
#endif
#include <stdio.h>
#include GLUT_H
int main() {
GLfloat a, t;
a = 1.0;
do {
printf("a = %.10f\n", a);
a = a / 2.0;
t = 1.0 + a;
} while ( t > 1.0 );
a = a + a;
printf("Estimated GLfloat epsilon = %.10f\n", a);
return(0);
}