[#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 `<bdldfp_decimalimputil.h>` Return `x` rounded to the nearest integral value. [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..._]# 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/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..._]# Return `x` rounded to the nearest integral value. [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..._]# Round the specified `x` to the specified `precision`. [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..._]# Return the specified `x` value rounded to the specified `precision`. 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/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..._]# Round the specified `x` to the specified `precision`. [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..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#