Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- urllib
- 라즈베리파이
- PER
- swift
- node.js
- IOS
- pandas
- 다이어트
- ASP
- Unity
- Linux
- javascript
- 함수
- 맛집
- sqlite
- GIT
- port
- MS-SQL
- 리눅스
- ubuntu
- tensorflow
- python
- flutter
- PyQt5
- mssql
- Excel
- MySQL
- PyQt
- 유니티
- 날짜
Archives
아미(아름다운미소)
[ASP] 숫자관련함수 본문
- 숫자 확인후 3자리마다 , 해주고 숫자가 아니면 문자 그대로 보내줌
Function ChkNumericToValue(CheckValue) If ISNumeric(CheckValue) Then ChkNumericToValue = FormatNumber(CheckValue,0) Else ChkNumericToValue = CheckValue End If End Function- Comma 뺀 숫자만 추출
Function ChkToMComma(CheckValue) dim CheckMomma If Len(CheckValue) > 0 Then CheckValue = replace(CheckValue, ",","") ChkToMComma = CheckValue Else ChkToMComma = "" End If End Function- 용량 단위 환산
Function Num_Unit(str) Num= CDbl(str) If Len(Num)>9 then Num=Num/1024/1024/1024 Unit="Gb" Elseif Len(Num)>6 Then Num=Num/1024/1024 Unit="Mb" Elseif Len(Num)>3 Then Num=Num/1024 Unit="Kb" Else Unit="" End If Num_Unit=FormatNumber(Num,2)&Unit End Function
'랭귀지 > ASP' 카테고리의 다른 글
[asp] 유용함수 정리 (0) | 2018.01.11 |
---|---|
[ASP]마지막 문자열 (0) | 2017.12.26 |
[ASP] 기타함수 (0) | 2017.12.22 |
[ASP]문자관련함수 (0) | 2017.12.22 |
[ASP]날짜관련함수 (0) | 2017.12.22 |
Comments