Skip to content

Commit 8a69893

Browse files
author
Eirik Bjørsnøs
committed
8343819: Link Float.NaN and Double.NaN to equivalence discussion in Double
Reviewed-by: darcy
1 parent 52c0b09 commit 8a69893

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/java.base/share/classes/java/lang/Double.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -375,9 +375,9 @@ public final class Double extends Number
375375
public static final double NEGATIVE_INFINITY = -1.0 / 0.0;
376376

377377
/**
378-
* A constant holding a Not-a-Number (NaN) value of type
379-
* {@code double}. It is equivalent to the value returned by
380-
* {@code Double.longBitsToDouble(0x7ff8000000000000L)}.
378+
* A constant holding a Not-a-Number (NaN) value of type {@code double}.
379+
* It is {@linkplain Double##equivalenceRelation equivalent} to the
380+
* value returned by {@code Double.longBitsToDouble(0x7ff8000000000000L)}.
381381
*/
382382
public static final double NaN = 0.0d / 0.0;
383383

src/java.base/share/classes/java/lang/Float.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ public final class Float extends Number
9393
public static final float NEGATIVE_INFINITY = -1.0f / 0.0f;
9494

9595
/**
96-
* A constant holding a Not-a-Number (NaN) value of type
97-
* {@code float}. It is equivalent to the value returned by
98-
* {@code Float.intBitsToFloat(0x7fc00000)}.
96+
* A constant holding a Not-a-Number (NaN) value of type {@code float}.
97+
* It is {@linkplain Double##equivalenceRelation equivalent}
98+
* to the value returned by{@code Float.intBitsToFloat(0x7fc00000)}.
9999
*/
100100
public static final float NaN = 0.0f / 0.0f;
101101

0 commit comments

Comments
 (0)