System Namespace Math Class
Returns the remainder resulting from the division of a specified number by another specified number.
[ VB ]
Public Shared Function IEEERemainder ( _
ByVal x As Double, _
ByVal y As Double _
) As Double
[ C# ]
public static double IEEERemainder (
double x,
double y
);
[ C++ ]
public: static double IEEERemainder (
double x,
double y
);
[ JScript ]
public static function IEEERemainder (
x : double,
y : double
) : double;
- x
- A dividend.
- y
- A divisor.
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 ( Not-A-Number ) is returned.
This operation complies with the remainder operation defined in Section 5.1 of ANSI/IEEE Std 754-1985; IEEE Standard for Binary Floating-Point Arithmetic; Institute of Electrical and Electronics Engineers, Inc; 1985.
Math Members