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