Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

VBScript Oct function


May 13, 2021 VBScript


Table of contents


VBScript Oct function

The VBScript Oct function returns a string that represents the octal value of a number.


VBScript Oct function Complete VBScript reference manual

The Oct function returns a string that represents the octal value of the specified number.

Note: If the argument is not an integer, round it to the nearest integer before performing the operation.

Grammar

Oct(number)

Parameters

parameter describe
number Required.Any effective expression.

If the 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 11 octic characters.
<script type="text/vbscript">

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

</script>

The above example output results:

3
5
11
12
13
14
620
713
714

Try it out . . .

VBScript Oct function Complete VBScript reference manual