[#BloombergLP-bdldfp-DecimalUtil-remainder-0f] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdldfp.adoc[bdldfp]::xref:BloombergLP/bdldfp/DecimalUtil.adoc[DecimalUtil]::remainder :relfileprefix: ../../../ :mrdocs: `remainder` overloads == Synopses Declared in `<bdldfp_decimalutil.h>` Same as the related overload above for `remainder`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdldfp/Decimal128.adoc[Decimal128] xref:BloombergLP/bdldfp/DecimalUtil/remainder-06.adoc[remainder]( xref:BloombergLP/bdldfp/Decimal128.adoc[Decimal128] x, xref:BloombergLP/bdldfp/Decimal128.adoc[Decimal128] y); ---- [.small]#xref:BloombergLP/bdldfp/DecimalUtil/remainder-06.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/Decimal32.adoc[Decimal32] xref:BloombergLP/bdldfp/DecimalUtil/remainder-07.adoc[remainder]( xref:BloombergLP/bdldfp/Decimal32.adoc[Decimal32] x, xref:BloombergLP/bdldfp/Decimal32.adoc[Decimal32] y); ---- [.small]#xref:BloombergLP/bdldfp/DecimalUtil/remainder-07.adoc[_» more..._]# Same as the related overload above for `remainder`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdldfp/Decimal64.adoc[Decimal64] xref:BloombergLP/bdldfp/DecimalUtil/remainder-0b.adoc[remainder]( xref:BloombergLP/bdldfp/Decimal64.adoc[Decimal64] x, xref:BloombergLP/bdldfp/Decimal64.adoc[Decimal64] y); ---- [.small]#xref:BloombergLP/bdldfp/DecimalUtil/remainder-0b.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#