title: Is it safe to check floating point values for equality to 0?
body: <p>I know you can't rely on equality between double or decimal type values normally, but I'm wondering if 0 is a special case.</p>
  
  <p>While I can understand imprecisions between 0.00000000000001 and 0.00000000000002, 0 itself seems pretty hard to mess up since it's just nothing.  If you're imprecise on nothing, it's not nothing anymore.</p>
  
  <p>But I don't know much about this topic so it's not for me to say.</p>
  
  <pre><code>double x = 0.0;
  return (x == 0.0) ? true : false;
  </code></pre>
  
  <p>Will that always return true?</p>