title: Compare two floats in JavaScript
body: <p>How can I compare two floats in JavaScript? Or perhaps a float and an int.</p>
  
  <pre><code>if (5 &gt; 4.3.3)
  
  if (5.0 &gt; 5.3)
  </code></pre>
  
  <p>Thankful for all input!</p>
  
  <p><strong>Update</strong></p>
  
  <p>I need to for an iPhone app that I am developing in Appcelerator. I need to compare iOS versions and display different content to each. So if a device is running 5.0 and another is running 4.3.3 I need to know the difference in my code.</p>