Online Java Compiler By
JavaTpoint.com
public class GetExponentExample3 { public static void main(String[] args) { double a = 1.0/0; // Input infinity of double type, Output (Double.MAX_EXPONENT+1) System.out.println(Math.getExponent(a)); } }
Output