[#BloombergLP-bdldfp-DecimalUtil-quantizeEqual-00] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdldfp.adoc[bdldfp]::xref:BloombergLP/bdldfp/DecimalUtil.adoc[DecimalUtil]::quantizeEqual :relfileprefix: ../../../ :mrdocs: `quantizeEqual` overloads == Synopses Declared in `<bdldfp_decimalutil.h>` Same as the related overload above for `quantizeEqual`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int xref:BloombergLP/bdldfp/DecimalUtil/quantizeEqual-01.adoc[quantizeEqual]( xref:BloombergLP/bdldfp/Decimal128.adoc[Decimal128]* x, xref:BloombergLP/bdldfp/Decimal128.adoc[Decimal128] y, int exponent); ---- [.small]#xref:BloombergLP/bdldfp/DecimalUtil/quantizeEqual-01.adoc[_» more..._]# Set `x` to `y` with the specified `exponent` if that value is exact. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int xref:BloombergLP/bdldfp/DecimalUtil/quantizeEqual-02.adoc[quantizeEqual]( xref:BloombergLP/bdldfp/Decimal32.adoc[Decimal32]* x, xref:BloombergLP/bdldfp/Decimal32.adoc[Decimal32] y, int exponent); ---- [.small]#xref:BloombergLP/bdldfp/DecimalUtil/quantizeEqual-02.adoc[_» more..._]# Same as the overload taking `Decimal32`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int xref:BloombergLP/bdldfp/DecimalUtil/quantizeEqual-0c.adoc[quantizeEqual]( xref:BloombergLP/bdldfp/Decimal64.adoc[Decimal64]* x, xref:BloombergLP/bdldfp/Decimal64.adoc[Decimal64] y, int exponent); ---- [.small]#xref:BloombergLP/bdldfp/DecimalUtil/quantizeEqual-0c.adoc[_» more..._]# == 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 into `x` | *exponent* | desired decimal exponent |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#