AIPS HELP file for EHEX in 31DEC21
As of Wed Oct 20 17:04:02 2021
EHEX: Verb to convert decimal numbers to extended hex strings
DENUMB $ 0.0 1679616. Decimal number:
$ 0 -> login user number
EHNUMB @ Extended hexadecimal version
The decimal number may given as the immediate argument
Use: EHEX will convert an immediate argument or adverb from decimal
integer to an "extended-hexidecimal" (base 36) string.
AIPS 2: User number 899999 is 'JAFZ' in extended hex
>DENUMB = 1278
AIPS 2: User number 1278 is '00ZI' in extended hex
>I = 649
AIPS 2: User number 649 is '00I1' in extended hex
>DENUMB = 0
AIPS 2: User number 36 is '0010' in extended hex
Note that the login user number is converted if no argument is
given AND there is no other number on the stack and DENUMB is
less or equal 0.
Note that, if EHEX is used in a FOR or WHILE loop or in an
IF-THEN-ELSE construct, then the immediate argument is required.
Otherwise, some item necessary to the loop/construct will be
taken as the immediate argument.
DENUMB......Decimal number to be converted if there is no immediate
argument. <= 0 becomes the login user number on
output. If there is an immediate argument DENUMB is set
to it on output.
EHNUMB......Hexadecimal number in 4 or fewer characters, left