[#arith_uint256-GetCompact] = xref:arith_uint256.adoc[arith_uint256]::GetCompact :relfileprefix: ../ :mrdocs: Encodes the value into the compact difficulty‐target format described above. == Synopsis Declared in `<arith_uint256.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- uint32_t GetCompact(bool fNegative = false) const; ---- == Return Value The 32‐bit compact representation of the value. == Parameters [cols="1,4"] |=== | Name| Description | *fNegative* | Whether to set the sign bit in the encoding. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#