HEX2OCT


Description Converts a hexadecimal number (base 16) to an octal number (base 8).

Syntax HEX2OCT( integer [, places])
Argument Description
integer Any negative or positive whole number or zero. For the purposes of this function, the integer entered must be small enough to convert within the limits of the target. Any integer between FFE0000000 to 1FFFFFF may be used.
places Optional number of characters to use in the output. If places is omitted, the function returns the number of spaces required to display the result. The places argument can be used to 0-pad a positive number.If the number is negative, places is ignored and 10 characters are returned.

Remarks Note that the result of this function is a text string.

Examples This function returns 400:

HEX2OCT(100)

This function returns 007:

HEX2OCT(7,3)

See Also BIN2DEC, BIN2HEX, BIN2OCT, DEC2BIN, DEC2HEX, DEC2OCT, HEX2BIN, HEX2DEC, OCT2BIN, OCT2DEC, OCT2HEX