title: What does the tilde mean in an expression?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/387424/what-is-the-tilde-in-a-c-sharp-enumeration">What is the tilde (~) in a C# enumeration?</a>  </p>
  </blockquote>
  
  
  
  <p>I found the following bit of code on a <a href="http://msdn.microsoft.com/en-us/library/cc250593%28v=prot.13%29.aspx" rel="noreferrer">this</a> MSDN page.</p>
  
  <pre><code>(((Width * Planes * BitCount + 31) &amp; ~31) / 8) * abs(Height)
  </code></pre>
  
  <p>This does indeed compile in C# visual studio 2010. What exactly is the tilde "~" doing in front of the number 31? I've never seen this syntax in an expression before.</p>