Online Java Compiler By
JavaTpoint.com
public class ToDegreesExample3 { public static void main(String[] args) { double x = -1.0/0; // Input negative infinity, Output negative infinity System.out.println(Math.toDegrees(x)); } }
Output