title: How to test a bit in a decimal number
body: <p>I have a set of decimal numbers. I need to check if a specific bit is set in each of them. If the bit is set, I need to return 1, otherwise return 0.<br>
  I am looking for a simple and fast way to do that.<br>
  Say, for example, I am checking if the third bit is set. I can do (number AND (2^2)), it will return 4 if the bit is set, otherwise it will return 0. How do I make it to return 1 instead of 4?<br>
  Thank you! </p>