# 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 will be rounded to the nearest integer before calculation.
### Syntax
Oct(number)
| Parameter | Description |
| :--- | :--- |
| number | Required. Any valid expression. If the number is: * Null - then Oct function returns Null. * Empty - then Oct function returns zero (0). * Any other number - then Oct function returns up to 11 octal characters. |
## Examples
## Examples
document.write(Oct(3) & "
")
document.write(Oct(5) & "
")
document.write(Oct(9) & "
")
document.write(Oct(10) & "
")
document.write(Oct(11) & "
")
document.write(Oct(12) & "
")
document.write(Oct(400) & "
")
document.write(Oct(459) & "
")
document.write(Oct(460) & "
")
The output of the above examples:
3
5
11
12
13
14
620
713
714
[Try it Β»](#)
* * Complete VBScript Reference Manual](#)
Func Oct
π
2026-06-13 | π C#
YouTip