[#BloombergLP-bdldfp-DecimalImpUtil-remainder-04] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdldfp.adoc[bdldfp]::xref:BloombergLP/bdldfp/DecimalImpUtil.adoc[DecimalImpUtil]::remainder :relfileprefix: ../../../ :mrdocs: `remainder` overloads == Synopses Declared in `<bdldfp_decimalimputil.h>` Return the remainder of dividing `x` by `y`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType128.adoc[DecimalImpUtil::ValueType128] xref:BloombergLP/bdldfp/DecimalImpUtil/remainder-09b.adoc[remainder]( xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType128.adoc[ValueType128] x, xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType128.adoc[ValueType128] y); ---- [.small]#xref:BloombergLP/bdldfp/DecimalImpUtil/remainder-09b.adoc[_» more..._]# Return the remainder of the division of the specified `x` by the specified `y`. The remainder of the division operation `x/y` calculated by this function is exactly the value `x ‐ n*y`, where `n` s the integral value nearest the exact value `x/y`. When `|n ‐ x/y| == 0.5`, the value `n` is chosen to be even. Note that in contrast to `DecimalImpUtil::fmod()`, the returned value is not guaranteed to have the same sign as `x`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType32.adoc[DecimalImpUtil::ValueType32] xref:BloombergLP/bdldfp/DecimalImpUtil/remainder-09e.adoc[remainder]( xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType32.adoc[ValueType32] x, xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType32.adoc[ValueType32] y); ---- [.small]#xref:BloombergLP/bdldfp/DecimalImpUtil/remainder-09e.adoc[_» more..._]# Return the remainder of dividing `x` by `y`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType64.adoc[DecimalImpUtil::ValueType64] xref:BloombergLP/bdldfp/DecimalImpUtil/remainder-06.adoc[remainder]( xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType64.adoc[ValueType64] x, xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType64.adoc[ValueType64] y); ---- [.small]#xref:BloombergLP/bdldfp/DecimalImpUtil/remainder-06.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#