Java Data Type Tutorial - Java Math E








Syntax

Math.E has the following syntax.

public static final double E

Example

In the following code shows how to use Math.E field.

public class Main {
  public static void main(String[] argv) {

    System.out.println(Math.E);

  }
}

The code above generates the following result.