[#arith_uint256-GetCompact]
= xref:arith_uint256.adoc[arith&lowbar;uint256]::GetCompact
:relfileprefix: ../
:mrdocs:

Encodes the value into the compact difficulty&hyphen;target format described above&period;

== Synopsis

Declared in `&lt;arith&lowbar;uint256&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
uint32&lowbar;t
GetCompact(bool fNegative = false) const;
----

== Return Value

The 32&hyphen;bit compact representation of the value&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *fNegative*
| Whether to set the sign bit in the encoding&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
