您的位置:寻梦网首页编程乐园VBScriptVBScript


objects constants operators statements functions properties methods






FUNCTION:  Oct( )

Oct(Number)

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

Code:
<% =Oct(123) %>

Output:
173

You can also use a negative integer number.

Code:
<% =Oct(-123) %>

Output:
177605

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

Code:
<% =Oct(123.456) %>

Output:
173