title: Javascript check if a number is 0, 0.0,0.0000
body: <p>AM currently processing gps coordinates in my javascript app using leaflet map and i would like to check if the value of longitude is 0,0.0,0.0000 since when my gps boots up sometimes it does send the first coordinates been 0 and later changes to the correct value</p>
  
  <p>So sometimes the wrong values can be sent as 0 or 0.0 or 0.0000 that is 0 with zero decimal places</p>
  
  <p>So currently i have added a quick check with </p>
  
  <pre><code>function initGpsMap(latitude, longitude){
  
    if(latitude != 0 || longitude != 0){
      //start processing map now
     }else{
      //show loading
     }
  }
  </code></pre>
  
  <p>The above only checks if its not 0 but passes when the value sent is 0.0 how can i check for all zero values .Sometimes a valid longitude or latitude can be a value like 0.0122</p>
  
  <p>so its some checks like <code>latitude or longitude doesnt have any no other than 0</code>. How do i add this so that if the value passed is 0.000000 still its detectected as zero</p>