Online Java Compiler By
JavaTpoint.com
public class RoundExample3 { public static void main(String[] args) { double negativeInfinity = Double.NEGATIVE_INFINITY; // Input negative Infinity, Output Long.MAX_VALUE System.out.println(Math.round(negativeInfinity)); } }
Output