Example usage for java.lang StrictMath E

List of usage examples for java.lang StrictMath E

Introduction

In this page you can find the example usage for java.lang StrictMath E.

Prototype

double E

To view the source code for java.lang StrictMath E.

Click Source Link

Document

The double value that is closer than any other to e, the base of the natural logarithms.

Usage

From source file:Main.java

public static void main(String[] args) {
    System.out.println("StrictMath.E:" + StrictMath.E);

}

From source file:strictE.java

public static void main(String[] args) {
    // Calculate E^2
    double e2 = StrictMath.E * StrictMath.E;

    System.out.println(e2);//from  w  ww.  j a v  a2 s .co m
}