oct()
function converts an integer number to an octal string prefixed with "0o".
Syntax:
oct(integer)
oct(5)
//'0o5'
oct(8)
//'0o10'
oct(10)
//'0o12'
oct(50)
//'0o62'
oct(64)
//'0o100'
Overview
abs
all
any
ascii
bool
callable
compile
divmod
dict
enumerate
exec
eval
input
help
int
id
len
min
max
list
set
tuple
str
float
type
frozenset
dir
open
pow
sum
round
sorted
reversed
map
zip
chr
ord
oct
bin
hex
breakpoint
classmethod
staticmethod
bytearray
bytes
iter
isinstance
complex
slice
repr
hash
next
hasattr
issubclass
filter
locals
globals
property
object
vars
super
delattr
getattr
setattr
__import__
range
oct()
function converts an integer number to an octal string prefixed with "0o".
Syntax:
oct(integer)
oct(5)
//'0o5'
oct(8)
//'0o10'
oct(10)
//'0o12'
oct(50)
//'0o62'
oct(64)
//'0o100'