java.lang.Math.IEEEremainder(double f1, double f2)


java.lang.Math.IEEEremainder(double f1, double f2)

package com.codingdict;

import java.lang.*;

public class MathDemo {

   public static void main(String[] args) {

      // get two double numbers
      double x = 60984.1;
      double y = -497.99;

      // get the remainder when x/y
      System.out.println("Math.IEEEremainder(" + x + "," + y + ")="
         + Math.IEEEremainder(x, y));

      // get the remainder when y/x
      System.out.println("Math.IEEEremainder(" + y + "," + x + ")="
         + Math.IEEEremainder(y, x));
   }
}