How to convert Date Difference value from float to int? : <p>I'm trying to calculate date difference using <code>JavaScript</code>.</p>

<p><strong>My Code:</strong></p>

<pre><code>function getELECurrentdifference($this1)
  {
    var CtrDate = new Date('');
    if($this1.datepicker("getDate") != null)
    {
      var ELEcertCurrentDiff= $this1.datepicker("getDate") - CtrDate;    
      var result = ELEcertCurrentDiff / (1000 * 60 * 60 * 24) * +1;
      //$("#ELEcertDiff").text(result);
      document.getElementById("ELEcertCurrentDiff").value = result;
    }
  }
</code></pre>

<p>But I got a value in float.</p>

<p><strong>Output:</strong></p>

<blockquote>
  <p>25.39119292824074</p>
</blockquote>

<p>How I can convert it to integer value like <strong>25</strong> only.</p>

<p>Any kind of help is welcome, thanks in advance.</p>
