[#BloombergLP-bdldfp-DecimalImpUtil-quantize-0e0] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdldfp.adoc[bdldfp]::xref:BloombergLP/bdldfp/DecimalImpUtil.adoc[DecimalImpUtil]::quantize :relfileprefix: ../../../ :mrdocs: `quantize` overloads == Synopses Declared in `<bdldfp_decimalimputil.h>` Return `value` quantized to the quantum of `exponent`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType128.adoc[DecimalImpUtil::ValueType128] xref:BloombergLP/bdldfp/DecimalImpUtil/quantize-09.adoc[quantize]( xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType128.adoc[ValueType128] value, xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType128.adoc[ValueType128] exponent); ---- [.small]#xref:BloombergLP/bdldfp/DecimalImpUtil/quantize-09.adoc[_» more..._]# Return `value` quantized to the specified `exponent`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType128.adoc[DecimalImpUtil::ValueType128] xref:BloombergLP/bdldfp/DecimalImpUtil/quantize-04.adoc[quantize]( xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType128.adoc[ValueType128] value, int exponent); ---- [.small]#xref:BloombergLP/bdldfp/DecimalImpUtil/quantize-04.adoc[_» more..._]# Return a number equal to the specified `value` (except for possible rounding) having the exponent equal to the exponent of the specified `exponent`. Rounding may occur when the exponent is greater than the quantum of `value`. E.g., `quantize(147e‐2_d32, 1e‐1_d32)` yields `15e‐1_d32`. In the opposite direction, if `exponent` is sufficiently less than the quantum of `value`, it may not be possible to construct the requested result, and if so, `NaN` is returned. E.g., `quantize(1234567e0_d32, 1e‐1_d32)` returns `NaN`. Return `value` quantized to the quantum of `exponent`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType32.adoc[DecimalImpUtil::ValueType32] xref:BloombergLP/bdldfp/DecimalImpUtil/quantize-0c.adoc[quantize]( xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType32.adoc[ValueType32] value, xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType32.adoc[ValueType32] exponent); ---- [.small]#xref:BloombergLP/bdldfp/DecimalImpUtil/quantize-0c.adoc[_» more..._]# Return a number equal to the specified `value` (except for possible rounding) having the specified `exponent`. Rounding may occur when `exponent` is greater than the quantum of `value`. E.g., `quantize(147e‐2_d32, ‐1)` yields `15e‐1_d32`. In the opposite direction, if `exponent` is sufficiently less than the quantum of `value`, it may not be possible to construct the requested result, and if so, `NaN` is returned. E.g., `quantize(1234567e0_d32, ‐1)` returns `NaN`. Behavior is undefined unless the `exponent` satisfies the following conditions * for `Decimal32` type: `‐101 <= exponent <= 90` * for `Decimal64` type: `‐398 <= exponent <= 369` * for `Decimal128` type: `‐6176 <= exponent <= 6111` Return `value` quantized to the specified `exponent`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType32.adoc[DecimalImpUtil::ValueType32] xref:BloombergLP/bdldfp/DecimalImpUtil/quantize-07.adoc[quantize]( xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType32.adoc[ValueType32] value, int exponent); ---- [.small]#xref:BloombergLP/bdldfp/DecimalImpUtil/quantize-07.adoc[_» more..._]# Return `value` quantized to the quantum of `exponent`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType64.adoc[DecimalImpUtil::ValueType64] xref:BloombergLP/bdldfp/DecimalImpUtil/quantize-0eb.adoc[quantize]( xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType64.adoc[ValueType64] value, xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType64.adoc[ValueType64] exponent); ---- [.small]#xref:BloombergLP/bdldfp/DecimalImpUtil/quantize-0eb.adoc[_» more..._]# Return `value` quantized to the specified `exponent`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType64.adoc[DecimalImpUtil::ValueType64] xref:BloombergLP/bdldfp/DecimalImpUtil/quantize-0f.adoc[quantize]( xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType64.adoc[ValueType64] value, int exponent); ---- [.small]#xref:BloombergLP/bdldfp/DecimalImpUtil/quantize-0f.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#