Run ❯
Get your
own Java
server
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
public class Main { public static void main(String[] args) { System.out.println(Math.log10(120)); System.out.println(Math.log10(10)); System.out.println(Math.log10(3.1623)); System.out.println(Math.log10(1)); System.out.println(Math.log10(0)); System.out.println(Math.log10(-1)); } }
2.0791812460476247
1.0
0.5000030680516933
0.0
-Infinity
NaN