Java Data Type Tutorial - 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.

/*ww w  .  j av a 2  s .c  om*/
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.