title: Bitwise NOT in ruby
body: <p>I have a formula in JS that uses the bitwise NOT operator.</p>
  
  <pre><code>~~(n/m + 0.5) * m;
  </code></pre>
  
  <p>How do I write the same expression in ruby? There is no bitwise NOT operator in ruby.</p>