[#BloombergLP-bdldfp-DecimalUtil-round-01d1]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdldfp.adoc[bdldfp]::xref:BloombergLP/bdldfp/DecimalUtil.adoc[DecimalUtil]::round
:relfileprefix: ../../../
:mrdocs:

`round` overloads

== Synopses

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

Same as the related overload above for `round`&period;


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

[.small]#xref:BloombergLP/bdldfp/DecimalUtil/round-0a.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/Decimal32.adoc[Decimal32]
xref:BloombergLP/bdldfp/DecimalUtil/round-0e.adoc[round](xref:BloombergLP/bdldfp/Decimal32.adoc[Decimal32] x);
----

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

Same as the related overload above for `round`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdldfp/Decimal64.adoc[Decimal64]
xref:BloombergLP/bdldfp/DecimalUtil/round-01db.adoc[round](xref:BloombergLP/bdldfp/Decimal64.adoc[Decimal64] x);
----

[.small]#xref:BloombergLP/bdldfp/DecimalUtil/round-01db.adoc[_» more&period;&period;&period;_]#

Same as the related overload above for `round`&period;


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

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

Return the specified `x` value rounded to the specified `precision` decimal places&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/Decimal32.adoc[Decimal32]
xref:BloombergLP/bdldfp/DecimalUtil/round-09f.adoc[round](
    xref:BloombergLP/bdldfp/Decimal32.adoc[Decimal32] x,
    unsigned int precision);
----

[.small]#xref:BloombergLP/bdldfp/DecimalUtil/round-09f.adoc[_» more&period;&period;&period;_]#

Same as the related overload above for `round`&period;


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

[.small]#xref:BloombergLP/bdldfp/DecimalUtil/round-09c.adoc[_» more&period;&period;&period;_]#


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