what went wrong with parseInt
<p>i just encounter 1 problem on the parseInt
i do apply this parseInt for all my project but today i just encounter this</p>

<p>i have a normal text input <code>&lt;input type='text' name='KG'&gt;</code>
and i using jquery to retrieve the input value, then write into another input
<code>&lt;input type='text' name='KG2'&gt;</code></p>

<p>below are my jquery code</p>

<pre><code>$(":input[name='KG']").keyup(calc);
function calc(){
   var kg = $(":input[name='KG']").val();
   kg=parseInt(kg);
   $(":input[name='KG2']").val(kg);
}
</code></pre>

<p>guess what, this the result i get<br/>
input@KG &nbsp; > &nbsp; show@KG2<br/>
28 &nbsp; > &nbsp; 28<br/>
028 &nbsp; > &nbsp; 2<br/>
34 &nbsp; > &nbsp; 34<br/>
034 &nbsp; > &nbsp; 28<br/>
9 &nbsp; > &nbsp; 9<br/>
09 &nbsp; > &nbsp; 0<br/></p>

<p>anyone know what went wrong? it can be solve by using Math.round.</p>
