[#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 `<bdldfp_decimalutil.h>` Same as the related overload above for `round`. [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..._]# Return the integral value nearest to the specified `x`. Round halfway cases away from zero, regardless of the current decimal floating point rounding mode. [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..._]# Same as the related overload above for `round`. [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..._]# Same as the related overload above for `round`. [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..._]# Return the specified `x` value rounded to the specified `precision` decimal places. Round halfway cases away from zero, regardless of the current decimal floating point rounding mode. If `x` is integral, positive zero, negative zero, NaN, or infinity then return `x` itself. [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..._]# Same as the related overload above for `round`. [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..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#