The value of a ExpandedDouble is given by
a × 2b
where:
a = significand
b = binaryExponent - bitLength(significand) + 1
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final BigInteger | _significand
Always 64 bits long (MSB, bit-63 is '1') |
| private static final BigInteger | |
| private static final BigInteger |
| Access | Constructor and Description |
|---|---|
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public static ExpandedDouble | |
| public int | |
| private static BigInteger | |
| public BigInteger | |
| public NormalisedDecimal | normaliseBaseTen()
Convert to an equivalent |
| _binaryExponent | back to summary |
|---|---|
| private final int _binaryExponent | |
| _significand | back to summary |
|---|---|
| private final BigInteger _significand Always 64 bits long (MSB, bit-63 is '1') | |
| BI_FRAC_MASK | back to summary |
|---|---|
| private static final BigInteger BI_FRAC_MASK | |
| BI_IMPLIED_FRAC_MSB | back to summary |
|---|---|
| private static final BigInteger BI_IMPLIED_FRAC_MSB | |
| ExpandedDouble | back to summary |
|---|---|
| public ExpandedDouble(long rawBits) | |
| ExpandedDouble | back to summary |
|---|---|
| pack-priv ExpandedDouble(BigInteger frac, int binaryExp) | |
| fromRawBitsAndExponent | back to summary |
|---|---|
| public static ExpandedDouble fromRawBitsAndExponent(long rawBits, int exp) | |
| getBinaryExponent | back to summary |
|---|---|
public int getBinaryExponent()
| |
| getFrac | back to summary |
|---|---|
| private static BigInteger getFrac(long rawBits) | |
| getSignificand | back to summary |
|---|---|
| public BigInteger getSignificand() | |
| normaliseBaseTen | back to summary |
|---|---|
| public NormalisedDecimal normaliseBaseTen() Convert to an equivalent | |