VBScript Oct Function
Complete VBScript Reference Manual
The Oct function returns a string representing the octal value of a specified number.
**Note:** If the argument is not an integer, it is rounded to the nearest integer before the operation.
Syntax
Oct(number)
| Parameters | Description |
|---|---|
| number | Required. Any valid expression.
If the number is: |
Example
Example
The example above produces the following output:
3
5
11
12
13
14
620
713
714
Try it »
Complete VBScript Reference Manual