title: Denormalized numbers C#
body: <p>I recently came across denormalized definition and I understand that there are some numbers that cannot be represented in a normalized form because they are too small to fit into its corresponding type. According with IEEE </p>
  
  <p><a href="https://i.stack.imgur.com/kPTfs.png" rel="noreferrer"><img src="https://i.stack.imgur.com/kPTfs.png" alt="enter image description here"></a></p>
  
  <p>So what I was trying to do is catch when a denormalized number is being passed as a parameter to avoid calculations with this numbers. If I am understanding correct I just need to look for numbers within the Range of denormalized </p>
  
  <pre><code>private bool IsDenormalizedNumber(float number)
  {
      return Math.Pow(2, -149) &lt;= number &amp;&amp; number&lt;= ((2-Math.Pow(2,-23))*Math.Pow(2, -127)) ||
             Math.Pow(-2, -149) &lt;= number &amp;&amp; number&lt;= -((2 - Math.Pow(2, -23)) * Math.Pow(2, -127));
  }
  </code></pre>
  
  <p>Is my interpretation correct? </p>