oct
oct — converts numbers into octal form.
oct (number)
numberAny number.
An integer number in octal format.
This function casts any number to an integer, and returns it in an octal representation. Floating point numbers are truncated.
Gamma>oct(12);0o14Gamma>oct(12.86223);0o14Gamma>oct(0x3b);0o73Gamma>oct(0b0101101);0o55Gamma>