public class

DoubleConsts

extends Object
java.lang.Object
   ↳ sun.misc.DoubleConsts

Class Overview

This class contains additional constants documenting limits of the double type.

Summary

Constants
int EXP_BIAS Bias used in representing a double exponent.
long EXP_BIT_MASK Bit mask to isolate the exponent field of a double.
int MAX_EXPONENT Maximum exponent a finite double number may have.
double MAX_VALUE
int MIN_EXPONENT Minimum exponent a normalized double number may have.
double MIN_NORMAL A constant holding the smallest positive normal value of type double, 2-1022.
int MIN_SUB_EXPONENT The exponent the smallest positive double subnormal value would have if it could be normalized.
double MIN_VALUE
double NEGATIVE_INFINITY
double NaN
double POSITIVE_INFINITY
int SIGNIFICAND_WIDTH The number of logical bits in the significand of a double number, including the implicit bit.
long SIGNIF_BIT_MASK Bit mask to isolate the significand field of a double.
long SIGN_BIT_MASK Bit mask to isolate the sign bit of a double.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int EXP_BIAS

Bias used in representing a double exponent.

Constant Value: 1023 (0x000003ff)

public static final long EXP_BIT_MASK

Bit mask to isolate the exponent field of a double.

Constant Value: 9218868437227405312 (0x7ff0000000000000)

public static final int MAX_EXPONENT

Maximum exponent a finite double number may have. It is equal to the value returned by Math.ilogb(Double.MAX_VALUE).

Constant Value: 1023 (0x000003ff)

public static final double MAX_VALUE

Constant Value: 1.7976931348623157E308

public static final int MIN_EXPONENT

Minimum exponent a normalized double number may have. It is equal to the value returned by Math.ilogb(Double.MIN_NORMAL).

Constant Value: -1022 (0xfffffc02)

public static final double MIN_NORMAL

A constant holding the smallest positive normal value of type double, 2-1022. It is equal to the value returned by Double.longBitsToDouble(0x0010000000000000L).

Constant Value: 2.2250738585072014E-308

public static final int MIN_SUB_EXPONENT

The exponent the smallest positive double subnormal value would have if it could be normalized. It is equal to the value returned by FpUtils.ilogb(Double.MIN_VALUE).

Constant Value: -1074 (0xfffffbce)

public static final double MIN_VALUE

Constant Value: 4.9E-324

public static final double NEGATIVE_INFINITY

Constant Value: -Infinity

public static final double NaN

Constant Value: NaN

public static final double POSITIVE_INFINITY

Constant Value: Infinity

public static final int SIGNIFICAND_WIDTH

The number of logical bits in the significand of a double number, including the implicit bit.

Constant Value: 53 (0x00000035)

public static final long SIGNIF_BIT_MASK

Bit mask to isolate the significand field of a double.

Constant Value: 4503599627370495 (0x000fffffffffffff)

public static final long SIGN_BIT_MASK

Bit mask to isolate the sign bit of a double.

Constant Value: -9223372036854775808 (0x8000000000000000)