oct — converts numbers into octal form.
oct (number)
Any 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); 0o14 Gamma> oct(12.86223); 0o14 Gamma> oct(0x3b); 0o73 Gamma> oct(0b0101101); 0o55 Gamma>
bin, dec, hex
Copyright © 1995-2010 by Cogent Real-Time Systems, Inc. All rights reserved.