Returns the remainder of x divided by y, as defined by the remainder operation in Section5.1 of ANSI/IEEE Std 754-1985; IEEE Standard for Binary Floating-Point Arithmetic; Institute of Electrical and Electronics Engineers, Inc; 1985.
[Visual Basic] 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;
The returned value is equivalent to x- (y n), where n is the quotient x/ y rounded to the nearest integer (the even integer is chosen when x/ y falls exactly halfway between two integers). In the event that x- (y n) is zero, the floating-point value +0 is returned when x is positive, and the floating-point value-0 is returned when x is negative. If y = 0, the returned value is NaN (Not A Number).