title: In C#, what is the best way to determine if a decimal "is an int"?
body: <p>I have a variable that is a decimal and i want to determine if it "is an int"</p>
  
  <pre><code>  public bool IsanInt(decimal variable)
  </code></pre>
  
  <p>so if the variable passed in was 1, i want to return true<br>
  if it was 1.5, it would return  false<br>
  .5 would be false<br>
  10 would be true</p>
  
  <p>what is the best way to do this check?</p>