Description

BigToCompact converts a whole number N to a compact representation using an unsigned 32-bit number. The compact representation only provides 23 bits of precision, so values larger than (2^23 - 1) only encode the most significant digits of the number. See CompactToBig for details.

BigToCompact is referenced in 2 repositories

github.com/btcsuite/btcd github.com/OpenBazaar/spvwallet