Return the remainder of x divided by y.
Synopsis
Description
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.
Return Value
remainder of x divided by y
Parameters
Name |
Description |
x |
dividend |
y |
divisor |
Created with MrDocs