code: def target_from_compact(bits):
      
      size = bits >> 24
      word = bits & 0x007fffff
      if size < 3:
          word >>= 8 * (3 - size)
      else:
          word <<= 8 * (size - 3)
      if bits & 0x00800000:
          word = -word
      return word
docs: \
      Extract a full target from its compact representation, undoing the
      transformation x=compact_from_target(t). See compact_from_target() for
      more information on this 32-bit floating point format.