How to collection tow numbers in javascript?
<p>Example:</p>

<pre><code>var x=1.5;
var y=1.5;
var r=x+y;
</code></pre>

<p>Must be result is 3 but the result give me 2</p>

<p>Here is my full code:</p>

<pre><code>$("#TxtProgremPrice,#TxtAdditionalPrice").keyup(function () {
    var x=parseInt($("#TxtProgremPrice").val());
    var y = parseInt($("#TxtAdditionalPrice").val());
    if ($("#TxtProgremPrice").val() == "") {
        x = 0;
    }
    if ($("#TxtAdditionalPrice").val() == "") {
        y = 0;
    }
    var r = x + y;
    $("#TxtTotalPrice").val(r);
});
</code></pre>
