comparison tests/code/float_1.d @ 122:2d6556f72afb

float tests
author Anders Halager <halager@gmail.com>
date Sun, 25 May 2008 21:03:06 +0200
parents
children
comparison
equal deleted inserted replaced
121:95dfe2f48dcf 122:2d6556f72afb
1 int main()
2 {
3 float a = 1.0 + 1;
4 double b = a + 1.0 + 2;
5 real c = b + a + 1e300;
6 c = c * a + a;
7 return c != f();
8 }
9
10 real f();
11