Logarithm, Algorithms, Java, Data Structures, Programming.
{ double number = 1000.0; // Natural logarithm double naturalLog = Math.log(number); System.out.println("Natural Log of " + number + " is: " + naturalLog); // Log base 10 double log10 = Math.log10(number); System.out.println("Base 10 Log of " + number + " is: " + log10); } } The output will be: