title: check whether the number is nearly equal javascript
body: <p>I want to know whether it is possible?</p>
  
  <p>Let Suppose:</p>
  
  <pre><code>var a = 2592;
  var b = 2584;
  if(a nearly equal to b) {
  // do something
  }
  </code></pre>