Math.IEEEremainder

Math.IEEEremainder

Class Overview | Class Members | This Package | All Packages

Syntax
public static native double IEEEremainder( double f1, double f2 )
Parameters
f1
the dividend.
f2
the divisor.
Returns
the remainder when f1 is divided by f2.
Description
Computes the remainder operation on two arguments as prescribed by the IEEE 754 standard. The remainder value is mathematically equal to f1 - f2 × n, where n is the mathematical integer closest to the exact mathematical value of the quotient f1/f2, and if two mathematical integers are equally close to f1/f2, then n is the integer that is even. If the remainder is zero, its sign is the same as the sign of the first argument.