docs: def int2ap(num):
      """Convert integer to A-P string representation."""
      val = ''
      ap = 'ABCDEFGHIJKLMNOP'
      num = int(abs(num))
      while num:
          num, mod = divmod(num, 16)
          val += ap[mod:mod + 1]
      return val