in C++ I'm defining the following types:
double doubleType = 1.6e-300;
long double longDoubleType = 1.6e-300;
I'll then print the values using:
cout << "double is of size " << sizeof(doubleType) << " and value is " << doubleType << endl;
cout << "long double is of size " << sizeof(longDoubleType) << " and value is " << longDoubleType << endl;
my output reads:
double is of size 8 and value is 1.6e-300
long double is of size 12 and value is -1.43863e-264
Whats causing the difference in the interpretation of the values?