Return the floating-point remainder of x divided by y.
Declared in <bdldfp_decimalimputil.h>
static
DecimalImpUtil::ValueType32
fmod(
ValueType32 x,
ValueType32 y);
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.
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.
the floating-point remainder of x divided by y
| Name | Description |
|---|---|
| x | dividend |
| y | divisor |