Oct

From NSB App Studio
Revision as of 18:37, 8 July 2012 by Brendon (talk | contribs) (Created page with "OCT(''number'') '''Description''' OCT returns a string representation of the octal (base 8) value of a number. The required parameter, ''number'', is any valid numeric expre...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

OCT(number)

Description

OCT returns a string representation of the octal (base 8) value of a number. The required parameter, number, is any valid numeric expression. If number is not a whole number, it is rounded to the nearest whole number before being converted.

Example

REM OCT Example
'OCT returns a number as an octal string
PRINT "68 in octal:", OCT(68)
PRINT "1 in octal:", OCT(1)
PRINT "2605.45 in octal:", OCT(2605.45)

Output

68 in octal:  104
1 in octal:   1
2605.45 in octal:    5055

Related Items

HEX