[#BloombergLP-bdldfp-DecimalImpUtil-sameQuantum-0c] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdldfp.adoc[bdldfp]::xref:BloombergLP/bdldfp/DecimalImpUtil.adoc[DecimalImpUtil]::sameQuantum :relfileprefix: ../../../ :mrdocs: Return `true` if `x` and `y` have the same quantum exponents. == Synopsis Declared in `<bdldfp_decimalimputil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static bool sameQuantum( xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType32.adoc[ValueType32] x, xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType32.adoc[ValueType32] y); ---- == Description If both arguments are NaN or both arguments are infinity, they have the same quantum exponents. Note that if exactly one operand is NaN or exactly one operand is infinity, they do not have the same quantum exponents. == Return Value `true` if `x` and `y` have the same quantum exponents == Parameters [cols="1,4"] |=== | Name| Description | *x* | first value | *y* | second value |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#