NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Math.IEEERemainder

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;

Parameters

x
The number to divide.
y
The number by which to divide (divisor). The divisor, y, may not be 0.

Return Value

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).

See Also

Math Class | Math Members | System Namespace