Description
Converts a decimal number to octal.
Syntax
DEC2OCT ( number )
Parameter | Description |
---|---|
number | The decimal integer to convert. |
Remarks
If number is less than -536,870,912 or greater than 536,870,911, DEC2OCT returns the #NUM! error value.
If number is nonnumeric, DEC2OCT returns the #VALUE! error value.
If number is negative, DEC2OCT returns a 10-character (30-bit) octal number in which the most significant bit is the sign bit. The remaining 29 bits are magnitude bits. Negative numbers are represented using two's-complement notation.
Examples
DEC2OCT ( 58 ) returns 72
DEC2OCT ( -100 ) returns 37777777634
See also