[#BloombergLP-bdldfp-DecimalUtil-quantize-04]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdldfp.adoc[bdldfp]::xref:BloombergLP/bdldfp/DecimalUtil.adoc[DecimalUtil]::quantize
:relfileprefix: ../../../
:mrdocs:

`quantize` overloads

== Synopses

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

Same as the related overload above for `quantize`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdldfp/Decimal128.adoc[Decimal128]
xref:BloombergLP/bdldfp/DecimalUtil/quantize-0c.adoc[quantize](
    xref:BloombergLP/bdldfp/Decimal128.adoc[Decimal128] value,
    xref:BloombergLP/bdldfp/Decimal128.adoc[Decimal128] exponent);
----

[.small]#xref:BloombergLP/bdldfp/DecimalUtil/quantize-0c.adoc[_» more&period;&period;&period;_]#

Same as the overload taking `Decimal64`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdldfp/Decimal128.adoc[Decimal128]
xref:BloombergLP/bdldfp/DecimalUtil/quantize-05.adoc[quantize](
    xref:BloombergLP/bdldfp/Decimal128.adoc[Decimal128] value,
    int exponent);
----

[.small]#xref:BloombergLP/bdldfp/DecimalUtil/quantize-05.adoc[_» more&period;&period;&period;_]#

Return `value` with the same quantum as `exponent`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdldfp/Decimal32.adoc[Decimal32]
xref:BloombergLP/bdldfp/DecimalUtil/quantize-02.adoc[quantize](
    xref:BloombergLP/bdldfp/Decimal32.adoc[Decimal32] value,
    xref:BloombergLP/bdldfp/Decimal32.adoc[Decimal32] exponent);
----

[.small]#xref:BloombergLP/bdldfp/DecimalUtil/quantize-02.adoc[_» more&period;&period;&period;_]#

Return `value` with the specified decimal `exponent`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdldfp/Decimal32.adoc[Decimal32]
xref:BloombergLP/bdldfp/DecimalUtil/quantize-011.adoc[quantize](
    xref:BloombergLP/bdldfp/Decimal32.adoc[Decimal32] value,
    int exponent);
----

[.small]#xref:BloombergLP/bdldfp/DecimalUtil/quantize-011.adoc[_» more&period;&period;&period;_]#

Same as the related overload above for `quantize`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdldfp/Decimal64.adoc[Decimal64]
xref:BloombergLP/bdldfp/DecimalUtil/quantize-06.adoc[quantize](
    xref:BloombergLP/bdldfp/Decimal64.adoc[Decimal64] value,
    xref:BloombergLP/bdldfp/Decimal64.adoc[Decimal64] exponent);
----

[.small]#xref:BloombergLP/bdldfp/DecimalUtil/quantize-06.adoc[_» more&period;&period;&period;_]#

Same as the related overload above for `quantize`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdldfp/Decimal64.adoc[Decimal64]
xref:BloombergLP/bdldfp/DecimalUtil/quantize-01d.adoc[quantize](
    xref:BloombergLP/bdldfp/Decimal64.adoc[Decimal64] value,
    int exponent);
----

[.small]#xref:BloombergLP/bdldfp/DecimalUtil/quantize-01d.adoc[_» more&period;&period;&period;_]#

== Return Value

* `value` with the same quantum as `exponent`
* `value` with the specified decimal `exponent`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *value*
| decimal value to quantize
| *exponent*
| value whose quantum supplies the desired exponent
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
