May 1995
Beginner
508 pages
16h 14m
English
Oct Function
Oct(number)number
Use: Required
Data Subtype: Numeric or String
Number or string representation of a number to convert.
A Variant of subtype String.
Returns the octal value of a given number.
If number isn’t already a whole
number, it’s rounded to the nearest whole number before being
evaluated.
If number is Null,
Oct returns Null.
If number is the special
Empty variant, Oct returns
(zero).
Oct returns up to 11 octal characters.
You can also use literals in your code to represent octal numbers by
appending &O to the relevant octal value. For
example, 100 decimal has the octal representation
&O144. The following statement assigns an
octal value to a variable:
lngOctValue1 = &H200 ' Assigns 128
| Hex Function |
Read now
Unlock full access