// Author: Volker Crede // Date: 02/04/2008 // This program finds the largest positive float // number x, such that (1.0 +x) - 1.0 == 0. #include using namespace std; int main() { float x = 1.0; float y = 2.0; while (y > 0) { x = x/2; y = (1.0 + x) - 1.0; } cout << x << endl; }