<div class="codetitle"> <span><a style="CURSOR: pointer" data="67896" class="copybut" id="copybut67896" onclick="doCopy('code67896')"><u>코드 복사</u></a></span> 코드는 다음과 같습니다.</div> <div class="codebody" id="code67896"> <br>function commafyback(num) <br>{ <br> var x = num.split(','); <br>return parsFloat(x.join("")) <br>} <br>function commafy(num) <br>{ <br>num = num. toFixed(2 ) ""; <br>var re=/(-?/d )(/d{3})/ <br>while(re.test(num)){ <br>num=num.replace( re," $1,$2"); <br>} <br>반환 번호 <br>} <br> </div>