Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

VBScript Oct Function

VBScript Oct Function


VBScript reference manual 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:

  • Null - then the Oct function returns Null.
  • Empty - then the Oct function returns zero (0).
  • Any other number - then the Oct function returns 11 octal characters.
  • |

    Example

    Example

    The example above produces the following output:

    3

    5

    11

    12

    13

    14

    620

    713

    714

    Try it »


    VBScript reference manual Complete VBScript Reference Manual