AIPS NRAO AIPS HELP file for EHEX in 31DEC24



As of Thu Oct 10 18:30:23 2024


EHEX: Verb to convert decimal numbers to extended hex strings

INPUTS

DENUMB   $        0.0    1679616.  Decimal number:
         $                            0 -> login user number
EHNUMB   @                         Extended hexadecimal version
          The decimal number may given as the immediate argument

HELP SECTION

EHEX
Type: Verb
Use:  EHEX will convert an immediate argument or adverb from decimal
      integer to an "extended-hexidecimal" (base 36) string.
      Examples:
          >EHEX 899999
          AIPS 2: User number 899999 is 'JAFZ' in extended hex
          >DENUMB = 1278
          >ehex
          AIPS 2: User number 1278 is '00ZI' in extended hex
          >I = 649
          >EHEX I
          AIPS 2: User number  649 is '00I1' in extended hex
          >DENUMB = 0
          >EHEX
          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.

Input/output adverb:
  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.
Output adverb:
  EHNUMB......Hexadecimal number in 4 or fewer characters, left
              justified.

EXPLAIN SECTION


AIPS