[#BloombergLP-bdlb-BitUtil-roundUp-06]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/BitUtil.adoc[BitUtil]::roundUp
:relfileprefix: ../../../
:mrdocs:

`roundUp` overloads

== Synopses

Declared in `&lt;bdlb&lowbar;bitutil&period;h&gt;`

Return the least multiple of the specified `boundary` that is greater than or equal to the specified `value`, and 0 if `0 &equals;&equals; value` or the conversion was not successful&period; The behavior is undefined unless `1 &equals;&equals; numBitsSet(boundary)`&period; Note that the conversion will succeed if and only if `0 &equals;&equals; value % boundary` or `(1 &lt;&lt; sizeInBits(value)) &gt; (value &sol; boundary &plus; 1) &ast; boundary`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
unsigned int
xref:BloombergLP/bdlb/BitUtil/roundUp-00.adoc[roundUp](
    unsigned int value,
    unsigned int boundary);
----

[.small]#xref:BloombergLP/bdlb/BitUtil/roundUp-00.adoc[_» more&period;&period;&period;_]#

Same as the `unsigned int` overload&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
unsigned long
xref:BloombergLP/bdlb/BitUtil/roundUp-01.adoc[roundUp](
    unsigned long value,
    unsigned long boundary);
----

[.small]#xref:BloombergLP/bdlb/BitUtil/roundUp-01.adoc[_» more&period;&period;&period;_]#

Same as the `unsigned int` overload&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
unsigned long long
xref:BloombergLP/bdlb/BitUtil/roundUp-03.adoc[roundUp](
    unsigned long long value,
    unsigned long long boundary);
----

[.small]#xref:BloombergLP/bdlb/BitUtil/roundUp-03.adoc[_» more&period;&period;&period;_]#


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