]> git.mxchange.org Git - flightgear.git/blob - tests/est-epsilon.c
Changes to match simgear changes which allow overriding the current
[flightgear.git] / tests / est-epsilon.c
1 #include <stdio.h>
2 #include <GL/glut.h>
3
4 int main() {
5     GLfloat a, t;
6
7     a = 1.0;
8
9     do {
10         printf("a = %.10f\n", a);
11         a = a / 2.0;
12         t = 1.0 + a;
13     } while ( t > 1.0 );
14
15     a = a + a;
16
17     printf("Estimated GLfloat epsilon = %.10f\n", a);
18
19     return(0);
20 }