Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2010699 | 1.1.1 | J. Duke | P5 | Closed | Fixed | 1.1.1 |
The declaration for java.lang.Math.PI is
/**
* The float representation of the value Pi. Pi is equivalent
* to 3.14159265358979323846f in Java.
*/
public static final double PI = 3.14159265358979323846;
The doc comment says that PI is a float, with a value with a trailing `f',
when in fact PI is a double, and the value is a double.
Similarly for java.lang.Math.E.
... peter 2/9/96
/**
* The float representation of the value Pi. Pi is equivalent
* to 3.14159265358979323846f in Java.
*/
public static final double PI = 3.14159265358979323846;
The doc comment says that PI is a float, with a value with a trailing `f',
when in fact PI is a double, and the value is a double.
Similarly for java.lang.Math.E.
... peter 2/9/96
- backported by
-
JDK-2010699 Doc comment for java.lang.Math.PI uses float, not double
-
- Closed
-