Online Java Compiler By
JavaTpoint.com
public class Log10Example3 { public static void main(String[] args) { double x = 1.0/0; // Input positive infinity, output Infinity System.out.println(Math.log10(x)); } }
Output