어떻게 긴 문자열 의 숫자 를 나 누 어 표시 합 니까?

<%Function Comma(str)If Not(IsNumeric(str)) Or str = 0 Then  Result = 0ElseIf Len(Fix(str)) < 4 Then  Result = strElse  Pos = Instr(1,str,".")  If Pos > 0 Then  Dec = Mid(str,Pos)  End if  Res = StrReverse(Fix(str))  LoopCount = 1  While LoopCount <= Len(Res)  TempResult = TempResult + Mid(Res,LoopCount,3)  LoopCount = LoopCount + 3  If LoopCount <= Len(Res) Then  TempResult = TempResult + ","  End If  Wend  Result=StrReverse(TempResult)+DecEnd IfComma=ResultEnd Function%><%aLongNumber="12345678"%>원래 숫자:<%=aLongNumber%>
쉼표 로 포맷 한 후:<%=Comma(aLongNumber)%>

좋은 웹페이지 즐겨찾기