8333828: Use value javadoc tag in java.lang.{Float, Double}
Reviewed-by: liach, rgiulietti
This commit is contained in:
parent
b25476200a
commit
13642cb4b8
@ -411,41 +411,43 @@ public final class Double extends Number
|
||||
public static final double MIN_VALUE = 0x0.0000000000001P-1022; // 4.9e-324
|
||||
|
||||
/**
|
||||
* The number of bits used to represent a {@code double} value.
|
||||
* The number of bits used to represent a {@code double} value,
|
||||
* {@value}.
|
||||
*
|
||||
* @since 1.5
|
||||
*/
|
||||
public static final int SIZE = 64;
|
||||
|
||||
/**
|
||||
* The number of bits in the significand of a {@code double} value.
|
||||
* This is the parameter N in section {@jls 4.2.3} of
|
||||
* <cite>The Java Language Specification</cite>.
|
||||
* The number of bits in the significand of a {@code double}
|
||||
* value, {@value}. This is the parameter N in section {@jls
|
||||
* 4.2.3} of <cite>The Java Language Specification</cite>.
|
||||
*
|
||||
* @since 19
|
||||
*/
|
||||
public static final int PRECISION = 53;
|
||||
|
||||
/**
|
||||
* Maximum exponent a finite {@code double} variable may have.
|
||||
* It is equal to the value returned by
|
||||
* {@code Math.getExponent(Double.MAX_VALUE)}.
|
||||
* Maximum exponent a finite {@code double} variable may have,
|
||||
* {@value}. It is equal to the value returned by {@code
|
||||
* Math.getExponent(Double.MAX_VALUE)}.
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
public static final int MAX_EXPONENT = (1 << (SIZE - PRECISION - 1)) - 1; // 1023
|
||||
|
||||
/**
|
||||
* Minimum exponent a normalized {@code double} variable may
|
||||
* have. It is equal to the value returned by
|
||||
* {@code Math.getExponent(Double.MIN_NORMAL)}.
|
||||
* Minimum exponent a normalized {@code double} variable may have,
|
||||
* {@value}. It is equal to the value returned by {@code
|
||||
* Math.getExponent(Double.MIN_NORMAL)}.
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
public static final int MIN_EXPONENT = 1 - MAX_EXPONENT; // -1022
|
||||
|
||||
/**
|
||||
* The number of bytes used to represent a {@code double} value.
|
||||
* The number of bytes used to represent a {@code double} value,
|
||||
* {@value}.
|
||||
*
|
||||
* @since 1.8
|
||||
*/
|
||||
|
@ -127,15 +127,16 @@ public final class Float extends Number
|
||||
public static final float MIN_VALUE = 0x0.000002P-126f; // 1.4e-45f
|
||||
|
||||
/**
|
||||
* The number of bits used to represent a {@code float} value.
|
||||
* The number of bits used to represent a {@code float} value,
|
||||
* {@value}.
|
||||
*
|
||||
* @since 1.5
|
||||
*/
|
||||
public static final int SIZE = 32;
|
||||
|
||||
/**
|
||||
* The number of bits in the significand of a {@code float} value.
|
||||
* This is the parameter N in section {@jls 4.2.3} of
|
||||
* The number of bits in the significand of a {@code float} value,
|
||||
* {@value}. This is the parameter N in section {@jls 4.2.3} of
|
||||
* <cite>The Java Language Specification</cite>.
|
||||
*
|
||||
* @since 19
|
||||
@ -143,8 +144,8 @@ public final class Float extends Number
|
||||
public static final int PRECISION = 24;
|
||||
|
||||
/**
|
||||
* Maximum exponent a finite {@code float} variable may have. It
|
||||
* is equal to the value returned by {@code
|
||||
* Maximum exponent a finite {@code float} variable may have,
|
||||
* {@value}. It is equal to the value returned by {@code
|
||||
* Math.getExponent(Float.MAX_VALUE)}.
|
||||
*
|
||||
* @since 1.6
|
||||
@ -152,8 +153,8 @@ public final class Float extends Number
|
||||
public static final int MAX_EXPONENT = (1 << (SIZE - PRECISION - 1)) - 1; // 127
|
||||
|
||||
/**
|
||||
* Minimum exponent a normalized {@code float} variable may have.
|
||||
* It is equal to the value returned by {@code
|
||||
* Minimum exponent a normalized {@code float} variable may have,
|
||||
* {@value}. It is equal to the value returned by {@code
|
||||
* Math.getExponent(Float.MIN_NORMAL)}.
|
||||
*
|
||||
* @since 1.6
|
||||
@ -161,7 +162,8 @@ public final class Float extends Number
|
||||
public static final int MIN_EXPONENT = 1 - MAX_EXPONENT; // -126
|
||||
|
||||
/**
|
||||
* The number of bytes used to represent a {@code float} value.
|
||||
* The number of bytes used to represent a {@code float} value,
|
||||
* {@value}.
|
||||
*
|
||||
* @since 1.8
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user