Is it safe to use -DBL_MAX in code?
<p>I want extreme -ve value .</p>

<pre><code>#include &lt;iostream&gt; 
using namespace std; 
#include &lt;math.h&gt;
#include &lt;limits.h&gt;
#include &lt;values.h&gt;

#define THRESHOLD 2*DBL_MIN

#define FEQ(x, y) (fabs((x) - (y)) &lt; THRESHOLD)

int main( )
{ 
double  a = -DBL_MAX; // I want here minimum value of double
if(FEQ(a,-DBL_MAX))
cout&lt;&lt;"Equal " &lt;&lt;endl;
else
cout&lt;&lt;"NOt equal"&lt;&lt;endl;
return 0;



}
</code></pre>

<p>So , is it safe to use <code>-DBL_MAX</code> in code? If anybody know better approach please share here.</p>
