[#base_uint-0d-bits]
= xref:base_uint-0d.adoc[base&lowbar;uint&lt;256&gt;]::bits
:relfileprefix: ../
:mrdocs:

Returns the position of the highest bit set plus one, or zero if the value is zero&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
unsigned int
bits() const;
----

== Return Value

The one&hyphen;based index of the most significant set bit, or zero&period;


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