Variables and math operators
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1416633/strange-javascript-addition-problem">Strange javascript addition problem</a>  </p>
</blockquote>



<p>I know there's obviously a solution for this, and I've done it before, but I can't remember it and now I can't find it.</p>

<pre><code>​&lt;div&gt;1&lt;/div&gt;​​​​​​​​

$(function() {
    var number = $('div').text();
    var math = number + 2;
    $('body').text(math);
});​
</code></pre>

<p><a href="http://jsfiddle.net/G5zdx/" rel="nofollow">http://jsfiddle.net/G5zdx/</a></p>

<p><code>number</code> is not being treated as an integer so <code>math</code>'s value is "12" instead of "3". How can I correct this?</p>
