Returns the remainder resulting from the division of a specified number by another specified number.
- Parameters
-
dividend | A dividend. |
divisor | A divisor. |
- Returns
- A number equal to x - (y Q), where Q is the quotient of x / y rounded to the nearest integer (if x / y falls halfway between two integers, the even integer is returned).
- If x - (y Q) is zero, the value +0 is returned if x is positive, or -0 if x is negative.
- If y = 0, xtd::math::NaN is returned.