[#BloombergLP-bdldfp-DecimalImpUtil-quantizeEqual-0d] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdldfp.adoc[bdldfp]::xref:BloombergLP/bdldfp/DecimalImpUtil.adoc[DecimalImpUtil]::quantizeEqual :relfileprefix: ../../../ :mrdocs: Quantize `y` to `exponent` into `x` when exactly representable. == Synopsis Declared in `<bdldfp_decimalimputil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int quantizeEqual( xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType64.adoc[ValueType64]* x, xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType64.adoc[ValueType64] y, int exponent); ---- == Return Value 0 on success, and a non‐zero value otherwise == Parameters [cols="1,4"] |=== | Name| Description | *x* | receives the quantized value on success | *y* | value to quantize | *exponent* | target quantum exponent |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#