Java StrictMath .IEEEremainder ( double f1, double f2)
Syntax
StrictMath.IEEEremainder(double f1, double f2) has the following syntax.
public static double IEEEremainder(double f1, double f2)
Example
In the following code shows how to use StrictMath.IEEEremainder(double f1, double f2) method.
/*from www . j a v a 2 s . com*/
public class Main {
public static void main(String[] args) {
double d1 = 123.45d , d2 = 32.10d;
System.out.println(StrictMath.IEEEremainder(d1, d2));
d1 = 32.10d;
d2 = (1.0)/(0.0);
System.out.println(StrictMath.IEEEremainder(d1, d2));
}
}
The code above generates the following result.