asp.net.ph

Math.IEEERemainder Method

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;

Parameters

x
A dividend.
y
A divisor.

Return Value

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.

Remarks

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.

See Also

Math Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph