VBScript Oct Function
Definition and Usage
The Oct function can return a string representing the octal value of the specified number.
Note:If number If the parameter is not an integer, it will be rounded to the nearest integer before the operation.
Syntax
Oct(number)
Parameter | Description |
---|---|
number |
required. Any valid expression. If number Is:
|
Example
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))
Output separately:
3 5 11 12 13 14 620 713 714