VBA Oct Function: The Oct function in VBA converts the given number into octal notation and returns the result as a string.

Syntax

Parameter

Number (required) – This parameter represents the numeric value that you want to convert to octal.

Return

This function returns a string value after converting the specified number into octal notation. If the number is a decimal, it will round it to the nearest integer before converting it to octal.

Example 1

Output

2.20E+01

VBA Oct Function

Example 2

Output

4.35E+03

VBA Oct Function

Example 3

Output

VBA Oct Function

Pin It on Pinterest

Share This