IEEERemainder Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Returns the remainder resulting from the division of a specified number by another specified number.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

public static double IEEERemainder(
	double x,
	double y
)

Parameters

x
Type: System..::..Double
A dividend.
y
Type: System..::..Double
A divisor.

Return Value

Type: System..::..Double
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, NaN is returned.

Show: