< ;script type="text/javascript"> function test(){ var thisvalue = 0; thisvalue=yuanToFen($("#inp").val());
alert(thisvalue); } /*yuan transfer points*/ function yuanToFen(yuan){ return parseInt(yuan*100,10);//Solution: change The return here is changed to: parseInt(yuan*1000,10)/10; }