Online Java Compiler By
JavaTpoint.com
public class Expm1Example5 { public static void main(String[] args) { double a = -1.0 / 0; // Input negative Infinity, Output -1 System.out.println(Math.expm1(a)); } }
Output