title: How to check number is integer or float using jquery
body: <p>Actually we are using d3 with grails. there is scenario like we need to sort the given input according to integer, float and string.</p>
  
  <p>I can check weather the input is number or string with `    </p>
  
  <pre><code>if(typeof(d["colorField"])=='number'){
    L_KEY_NUMERIC = true;
  }else{
     L_KEY_NUMERIC = true;
  }
  </code></pre>
  
  <p>but this is failing for double value. double values are not getting sorted properly. </p>
  
  <p>So, i need to check whether the key is double or integer using jquery.
  currently I'am using sort() method which sorts for integer normally but not for double values. once i detect the key is double or float which sort method i need to use.</p>
  
  <p>And how to sort float key via ascending order in jquery.</p>
  
  <p>Any help appreciated.</p>