title: How to set returned value of log10(0)?
body: <p><a href="http://coliru.stacked-crooked.com/a/5485df2d33f7b7bf" rel="nofollow noreferrer">Code</a>:</p>
  <pre><code>#include &lt;iostream&gt;
  #include &lt;math.h&gt;
  
  using namespace std;
  
  int main ()
  {
    double result = log10(0.0);
    cout &lt;&lt; result;
  }
  </code></pre>
  <p>When I execute log10(0) in C++, It prints to me <code>-inf</code>.</p>
  <p>Is it fixed for every library/compiler I'll use?</p>
  <p>Or could it change in different platforms?</p>
  <p>How would you manage the <code>pole error</code> keeping <code>double</code>?</p>