Online Java Compiler By
JavaTpoint.com
public class IEEEremainderExample3 { public static void main(String[] args) { double a = 1.0/0; double b = 5; // First argument is infinity, Output NaN System.out.println(Math.IEEEremainder(a, b)); } }
Output