package elte.java2_utikalauz5.lang; /** Numerikus konstansok. @link.forrásfájl {@docRoot}/../data/lang/src InfTeszt.java @link.letöltés {@docRoot}/../data/lang InfTeszt.jar @since Java Útikalauz programozóknak */ public class InfTeszt { public static void main(String args[]) { double d = Double.POSITIVE_INFINITY; double e = Double.NEGATIVE_INFINITY; System.out.println("d == "+d); System.out.println("e == "+e); System.out.println("d + 1 == "+(d+1)); System.out.println("d - 1 == "+(d-1)); System.out.println("d+e == "+(d+e)); System.out.println("d*e == "+(d*e)); System.out.println("d-d == "+(d-d)); } }