xtd 0.2.0
Loading...
Searching...
No Matches

◆ ieee_remainder()

static double xtd::math::ieee_remainder ( double  dividend,
double  divisor 
)
static

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

Parameters
dividendA dividend.
divisorA 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.