#include <iostream>
#include <limits>

using namespace std;

int main(){

    int i =  numeric_limits<int>::max();
    float f = float(i);
    cout.precision(11);
    cout << "1. f is " << f << endl;
    cout << "2. i is "  << i << endl;
    cout  << "3. int(f) - i is " << int(f) - i << endl;

    f = .4;
    double d = .4;
    cout << "4. d - f is " << d - f << endl;

    cout << sizeof(f) << endl;
    cout << sizeof(i) << endl;
    cout << sizeof(d) << endl;
    cout  << "largest C++ int on this system is " 
	  << i << endl;

    for (int j = 0; j < 200; j+=16)
	cout << "i - " << j << " as a float is " << float(i-j) << endl;


}

