[#BloombergLP-bdldfp-DecimalImpUtil-quantizeEqual-0b]
= 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&period;

== Synopsis

Declared in `&lt;bdldfp&lowbar;decimalimputil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
quantizeEqual(
    xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType128.adoc[ValueType128]* x,
    xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType128.adoc[ValueType128] y,
    int exponent);
----

== Return Value

0 on success, and a non&hyphen;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]#
