Java.Lang.StrictMath.IEEEremainder Method
Returns the remainder of dividing x by y using the IEEE 754 rules.

Syntax

[Android.Runtime.Register("IEEEremainder", "(DD)D", "")]
public static double IEEEremainder (double x, double y)

Parameters

x
the numerator of the operation.
y
the denominator of the operation.

Returns

Documentation for this section has not yet been entered.

Remarks

Returns the remainder of dividing x by y using the IEEE 754 rules. The result is x-round(x/p)*p where round(x/p) is the nearest integer (rounded to even), but without numerical cancellation problems.

Special cases:

  • IEEEremainder((anything), 0) = NaN
  • IEEEremainder(+infinity, (anything)) = NaN
  • IEEEremainder(-infinity, (anything)) = NaN
  • IEEEremainder(NaN, (anything)) = NaN
  • IEEEremainder((anything), NaN) = NaN
  • IEEEremainder(x, +infinity) = x where x is anything but +/-infinity
  • IEEEremainder(x, -infinity) = x where x is anything but +/-infinity

[Android Documentation]

Requirements

Namespace: Java.Lang
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1