title: Check if decimal contains decimal places by looking at the bytes
body: <p>There is a similar question in <a href="https://stackoverflow.com/questions/4668407/how-to-check-whether-a-float-number-contains-decimals-like-2-10-2-45-12382-66">here</a>.  Sometimes that solution gives exceptions because the numbers might be to large. </p>
  
  <p>I think that if there is a way of looking at the bytes of a decimal number it will be more efficient. For example a decimal number has to be represented by some n number of bytes. For example an Int32 is represented by 32 bits and all the numbers that start with the bit of 1 are negative. Maybe there is some kind of similar relationship with decimal numbers. How could you look at the bytes of a decimal number? or the bytes of an integer number?</p>