작성일 : 16-07-24 13:07
|
[ASP] asp 소수점 2자리까지 표시
|
|
|
글쓴이 :
조형래
 조회 : 2,531
|
Function getListStr(value)
Dim strList
Dim resStr
strList = Split(value,".")
'dispalert(strList(0))
'dispalert(strList(1))
'dispalert(ubound(strList))
if ubound(strList) > 0 then
if len(strList(1)) >= 2 then
resStr = strList(0) & "." & left(strList(1),2)
Else
resStr = strList(0) & "." & strList(1)
End if
Else
resStr = value
End if
getListStr = resStr
End Function
|
|