On Tue, 15 Mar 2022 01:36:14 GMT, Joe Darcy <da...@openjdk.org> wrote:
> 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. This pull request has now been integrated. Changeset: 671b6efd Author: Joe Darcy <da...@openjdk.org> URL: https://git.openjdk.java.net/jdk/commit/671b6efd6126384c0630d1cd84f53f52995e68d8 Stats: 5 lines in 2 files changed: 0 ins; 0 del; 5 mod 8283143: Use minimal-length literals to initialize PI and E constants Reviewed-by: smarks ------------- PR: https://git.openjdk.java.net/jdk/pull/7814