public class MainClass { public static void main(String[] argv) { float i = 1; float j = 1; System.out.println(i / (j - 1)); System.out.println(Float.isNaN(i / (j - 1))); } }