/*
    Limits to doubles ability to represent numbers
    
    1) Exercise try changing all double to "float" or "long double".

    See Nyhoff P43-44.
*/

#include <iostream>     // cout
#include <limits>       // numeric_limits
using namespace std;

int main()         
{                  
   cout << "maxvalue=" << numeric_limits<double>::max() << endl;
   cout << "minvalue=" << numeric_limits<double>::min() << endl;
   cout << "digits="   << numeric_limits<double>::digits10 << endl;
   cout << "Number of bytes=" << sizeof(double) << endl;
   cout << "Number of bits=" << 8*sizeof(double) << endl;

   return 0;                        
}                                   
