본문 바로가기
[ Web ]/JavaScript & JQUERY

소수점 두 자리까지

by 관이119 2012. 9. 11.




var str = "12.3456";

var num = parseFloat(str).toFixed(2);


댓글