Is there a better way to check if a value is bigger than of type double?
- by user342231
double x;
cin>>x;
if( x > 1.7976931348623157e+308 || x < -1.7976931348623157e+308 )
{
cout<<"value not in range"<<endl;
exit(1);
}
Is there like a DOUBLE_MAX or DOUBLE_MIN and would I need to include any header files?