[#BloombergLP-bdldfp-DecimalImpUtil-round-0f]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdldfp.adoc[bdldfp]::xref:BloombergLP/bdldfp/DecimalImpUtil.adoc[DecimalImpUtil]::round
:relfileprefix: ../../../
:mrdocs:

`round` overloads

== Synopses

Declared in `&lt;bdldfp&lowbar;decimalimputil&period;h&gt;`

Return `x` rounded to the nearest integral value&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType128.adoc[DecimalImpUtil::ValueType128]
xref:BloombergLP/bdldfp/DecimalImpUtil/round-06.adoc[round](xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType128.adoc[ValueType128] x);
----

[.small]#xref:BloombergLP/bdldfp/DecimalImpUtil/round-06.adoc[_» more&period;&period;&period;_]#

Return the integral value nearest to the specified `x`&period; Round halfway cases away from zero, regardless of the current decimal floating point rounding mode&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType32.adoc[DecimalImpUtil::ValueType32]
xref:BloombergLP/bdldfp/DecimalImpUtil/round-0e.adoc[round](xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType32.adoc[ValueType32] x);
----

[.small]#xref:BloombergLP/bdldfp/DecimalImpUtil/round-0e.adoc[_» more&period;&period;&period;_]#

Return `x` rounded to the nearest integral value&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType64.adoc[DecimalImpUtil::ValueType64]
xref:BloombergLP/bdldfp/DecimalImpUtil/round-0b.adoc[round](xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType64.adoc[ValueType64] x);
----

[.small]#xref:BloombergLP/bdldfp/DecimalImpUtil/round-0b.adoc[_» more&period;&period;&period;_]#

Round the specified `x` to the specified `precision`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType128.adoc[ValueType128]
xref:BloombergLP/bdldfp/DecimalImpUtil/round-08.adoc[round](
    xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType128.adoc[ValueType128] x,
    unsigned int precision);
----

[.small]#xref:BloombergLP/bdldfp/DecimalImpUtil/round-08.adoc[_» more&period;&period;&period;_]#

Return the specified `x` value rounded to the specified `precision`&period; Round halfway cases away from zero, regardless of the current decimal floating point rounding mode&period; If `x` is integral, positive zero, negative zero, NaN, or infinity then return `x` itself&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType32.adoc[ValueType32]
xref:BloombergLP/bdldfp/DecimalImpUtil/round-07.adoc[round](
    xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType32.adoc[ValueType32] x,
    unsigned int precision);
----

[.small]#xref:BloombergLP/bdldfp/DecimalImpUtil/round-07.adoc[_» more&period;&period;&period;_]#

Round the specified `x` to the specified `precision`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType64.adoc[ValueType64]
xref:BloombergLP/bdldfp/DecimalImpUtil/round-04.adoc[round](
    xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType64.adoc[ValueType64] x,
    unsigned int precision);
----

[.small]#xref:BloombergLP/bdldfp/DecimalImpUtil/round-04.adoc[_» more&period;&period;&period;_]#


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