public class IeeeRenainderMethod { 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)); } }
No comments:
Post a Comment