How to Use Math.log() in Java


In this example we will show you how to use math.log() in Java.

Source Code

package com.beginner.examples;

public class Log {
  public static void main(String[] args){
    System.out.println(Math.log(6)); // use math.log()
  }
}

Output:

1.791759469228055
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments