[#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;


[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 `x` rounded to the specified number of decimal places&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;_]#

== Return Value

* integral value nearest to `x`
* `x` rounded to the specified number of decimal places

== Parameters

[cols="1,4"]
|===
| Name| Description
| *x*
| value to round to nearest integral decimal
| *precision*
| number of decimal places to round to
|===


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