title: Check if number is decimal with swift
body: <p>How can i check if a number is decimal or not using swift?</p>
  
  <p>With Objective-C:</p>
  
  <pre><code>if (number == (int) number) {
    //decimal
  }
  else {
    //not decimal
  }
  </code></pre>