Returns the remainder resulting from the division of a specified number by another specified number.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public static double IEEERemainder(
double x,
double y
)
Parameters
- x
- Type: SystemDouble
A dividend. - y
- Type: SystemDouble
A divisor.
Return Value
Type:
DoubleA 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,
NaN is returned.
See Also