VBScript Oct 함수


❮ 완전한 VBScript 참조

Oct 함수는 지정된 숫자의 8진수 값을 나타내는 문자열을 반환합니다.

참고: number가 이미 정수가 아닌 경우 평가되기 전에 가장 가까운 정수로 반올림됩니다.

통사론

Oct(number)

Parameter Description
number Required. Any valid expression

If number is:

  • Null - then the Oct function returns Null.
  • Empty - then the Oct function returns zero (0).
  • Any other number - then the Oct function returns up to 11 octal characters.

예시

예시

<%

response.write(Oct(3) & "<br />")
response.write(Oct(5) & "<br />")
response.write(Oct(9) & "<br />")
response.write(Oct(10) & "<br />")
response.write(Oct(11) & "<br />")
response.write(Oct(12) & "<br />")
response.write(Oct(400) & "<br />")
response.write(Oct(459) & "<br />")
response.write(Oct(460) & "<br />")

%>

위 코드의 출력은 다음과 같습니다.

3
5
11
12
13
14
620
713
714

❮ 완전한 VBScript 참조