MathNIEEERemainderTNumeric Method

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

Definition

Namespace: Jodosoft.Numerics
Assembly: Jodosoft.Numerics (in Jodosoft.Numerics.dll) Version: 2.0
public static TNumeric IEEERemainder<TNumeric>(
	TNumeric x,
	TNumeric y
)
where TNumeric : struct, new(), INumeric<TNumeric>

Parameters

x  TNumeric
A dividend.
y  TNumeric
A divisor.

Type Parameters

TNumeric

Return Value

TNumeric
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).

Remarks

This method may return NaN or Infinity. If NaN or Infinity cannot be represented by TNumeric, then this method may throw an ArithmeticException.

See Also