RFR: JDK-8283143: Use minimal-length literals to initialize PI and E constants [v2]

Joe Darcy darcy at openjdk.java.net
Tue Mar 15 16:09:29 UTC 2022


> Depending on the range of the number line, a double value has between 15 and 17 digits of decimal precision. The literals used to initialize Math.PI and Math.E have several digits more precision than that maximum.
> 
> That is potentially confusing to readers of the code and the minimum length strings to exactly represent the value in question should be used instead.

Joe Darcy has updated the pull request incrementally with one additional commit since the last revision:

  Update copyright.

-------------

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/7814/files
  - new: https://git.openjdk.java.net/jdk/pull/7814/files/3bf9de9f..f4c0e63e

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=7814&range=01
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=7814&range=00-01

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.java.net/jdk/pull/7814.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/7814/head:pull/7814

PR: https://git.openjdk.java.net/jdk/pull/7814


More information about the core-libs-dev mailing list