MathNIEEERemainderTNumeric Method
Returns the remainder resulting from the division of a specified number by another specified number.
Namespace: Jodosoft.NumericsAssembly: Jodosoft.Numerics (in Jodosoft.Numerics.dll) Version: 2.0
public static TNumeric IEEERemainder<TNumeric>(
TNumeric x,
TNumeric y
)
where TNumeric : struct, new(), INumeric<TNumeric>
Public Shared Function IEEERemainder(Of TNumeric As {Structure, New, INumeric(Of TNumeric)}) (
x As TNumeric,
y As TNumeric
) As TNumeric
public:
generic<typename TNumeric>
where TNumeric : value class, gcnew(), INumeric<TNumeric>
static TNumeric IEEERemainder(
TNumeric x,
TNumeric y
)
static member IEEERemainder :
x : 'TNumeric *
y : 'TNumeric -> 'TNumeric when 'TNumeric : struct, new() and INumeric<'TNumeric>
- x TNumeric
- A dividend.
- y TNumeric
- A divisor.
- TNumeric
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).
This method may return
NaN or Infinity.
If
NaN or Infinity cannot be represented by
TNumeric,
then this method may throw an
ArithmeticException.