VBScript » Functions » Oct

Version: 1.0

Syntax:
Oct(Number)

The Oct function returns the octal value of an integer number.

Examples

Code:
<% =Oct(123) %>
Output:
173
Language(s): VBScript
Code:
<% =Oct(-123) %>
Output:
177605
Explanation:

You can also use a negative integer number.

Language(s): VBScript
Code:
<% =Oct(123.456) %>
Output:
173
Explanation:

For a number with a decimal point (floating-point), the digits to the right of the decimal point are ignored.

Language(s): VBScript

See Also: