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