Constants

Mathematical constants

Type

Name

Value

Description

double

infinity

1d / 0d

A constant holding the positive infinity of type double (Double.POSITIVE_INFINITY).

double

-infinity

- 1d / 0d

Holds the negative infinity of type double (Double.NEGATIVE_INFINITY).

double

E

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

double

PI

3.141592653589793 The double value that is closer than any other to , the ratio of the circumference of a circle to its diameter.