[#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 `x` rounded to the nearest integral value. [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..._]# Return `x` rounded 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 `x` rounded to the specified `precision`. [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..._]# Return `x` rounded 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..._]# == Return Value * `x` rounded to the nearest integral value * `x` rounded to the specified `precision` == Parameters [cols="1,4"] |=== | Name| Description | *x* | value to round | *precision* | number of digits after the decimal point |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#