Integrated: 8343819: Link Float.NaN and Double.NaN to equivalence discussion in Double
Eirik Bjørsnøs
eirbjo at openjdk.org
Sat Nov 9 05:56:12 UTC 2024
On Fri, 8 Nov 2024 10:10:28 GMT, Eirik Bjørsnøs <eirbjo at openjdk.org> wrote:
> Please review this doc-only enhancement which links the word _equivalent_ in `Float.NaN` and `Double.NaN` constant field descriptions to the floating-point equivalence discussion in `Double`.
>
>> It is equivalent to the value returned by{@code Float.intBitsToFloat(0x7fc00000)}.
>
> For readers not well-versed in floating point, it may not be immediatly clear what _equivalent to_ means here.
>
> The smallest improvement I could think of is to simply make the word `equivalent` a plain link to the floating-point equivalence discussion in the class description of `java.lang.Double`.
>
> Verification: This is a doc-only change. I ran `make docs` and verified that the links resolve.
This pull request has now been integrated.
Changeset: 8a69893e
Author: Eirik Bjørsnøs <eirbjo at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/8a69893e1d01f27b0be65cca69601856c1e54e98
Stats: 6 lines in 2 files changed: 0 ins; 0 del; 6 mod
8343819: Link Float.NaN and Double.NaN to equivalence discussion in Double
Reviewed-by: darcy
-------------
PR: https://git.openjdk.org/jdk/pull/21972
More information about the core-libs-dev
mailing list