[#BloombergLP-bdldfp-DecimalUtil-fmod-07] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdldfp.adoc[bdldfp]::xref:BloombergLP/bdldfp/DecimalUtil.adoc[DecimalUtil]::fmod :relfileprefix: ../../../ :mrdocs: Return the remainder of the division of the specified `x` by the specified `y`. The returned value has the same sign as `x` and is less than `y` in magnitude. == Synopsis Declared in `<bdldfp_decimalutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdldfp/Decimal32.adoc[Decimal32] fmod( xref:BloombergLP/bdldfp/Decimal32.adoc[Decimal32] x, xref:BloombergLP/bdldfp/Decimal32.adoc[Decimal32] y); ---- == Description Special value handling: * If either argument is quiet NaN, quiet NaN is returned. * If either argument is signaling NaN, quiet NaN is returned, and the value of the macro `EDOM` is stored into `errno`. * If `x` is +/‐infnity and `y` is not NaN, quiet NaN is returned and the value of the macro `EDOM` is stored into `errno`. * If `x` is +/‐0 and `y` is not zero, +/‐0 is returned. * If `y` is +/‐0, quite NaN is returned and the value of the macro `EDOM` is stored into `errno`. * If `x` is finite and `y` is +/‐infnity, `x` is returned. [.small]#Created with https://www.mrdocs.com[MrDocs]#