// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
public class IEEE {
   public static void main(String[] args) {
      double x;
      x = -Double.MAX_VALUE;
      System.out.println(x + " + 1E307 = " + (x + 1E307));
      x = Double.NEGATIVE_INFINITY;
      System.out.println(x + " + 1E307 = " + (x + 1E307));
   }
}
