Online Java Compiler By
JavaTpoint.com
public class CosExample4 { public static void main(String[] args) { double a = Double.MAX_VALUE; double b = Math.toRadians(a); System.out.println(Math.cos(b)); } }
Output