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