title: How to check if a double is null?
body: <p>I'm querying a database and some of the results I'm getting are null. I'm setting these values to a variable with a datatype of double. Let's call the variable &quot;results&quot;. So I tried setting up an if statement to see it equals Null which of course didn't work. Here is the code I have for that if statement:</p>
  <pre><code>if (results == null)
  {
       results = 0;
  }
  </code></pre>
  <p>The error I get with this code is:</p>
  <pre><code>The operator == is undefined for the argument type(s) double, null
  </code></pre>
  <p>Is there a better way to determine if it's null?</p>