Mega Code Archive

 
Categories / Java Tutorial / Development
 

Find natural logarithm value of a number using Math log

public class Main {   public static void main(String[] args) {     System.out.println("Natural logarithm value of 2 is : " + Math.log(2));   } } //Natural logarithm value of 2 is : 0.6931471805599453