Package | Description |
---|---|
org.apfloat |
The apfloat Application Programming Interface (API).
|
org.apfloat.internal |
Default implementations of the apfloat Service Provider Interface (SPI).
|
org.apfloat.spi |
The apfloat Service Provider Interface (SPI).
|
Modifier and Type | Method and Description |
---|---|
protected ApfloatImpl |
Apfloat.getImpl(long precision)
Returns an
ApfloatImpl representing the actual instance
of this apfloat up to the requested precision. |
protected ApfloatImpl |
Aprational.getImpl(long precision)
Returns an
ApfloatImpl representing the approximation of this
aprational up to the requested precision. |
protected ApfloatImpl |
Apint.getImpl(long precision)
Returns an
ApfloatImpl representing this apint up to the requested precision. |
Constructor and Description |
---|
Apfloat(ApfloatImpl impl)
Constructs an apfloat that is backed by the specified
ApfloatImpl object. |
Modifier and Type | Class and Description |
---|---|
class |
DoubleApfloatImpl
Immutable apfloat implementation class for the
double data element type. |
class |
FloatApfloatImpl
Immutable apfloat implementation class for the
float data element type. |
class |
IntApfloatImpl
Immutable apfloat implementation class for the
int data element type. |
class |
LongApfloatImpl
Immutable apfloat implementation class for the
long data element type. |
Modifier and Type | Method and Description |
---|---|
ApfloatImpl |
DoubleApfloatImpl.absCeil() |
ApfloatImpl |
IntApfloatImpl.absCeil() |
ApfloatImpl |
FloatApfloatImpl.absCeil() |
ApfloatImpl |
LongApfloatImpl.absCeil() |
ApfloatImpl |
DoubleApfloatImpl.absFloor() |
ApfloatImpl |
IntApfloatImpl.absFloor() |
ApfloatImpl |
FloatApfloatImpl.absFloor() |
ApfloatImpl |
LongApfloatImpl.absFloor() |
ApfloatImpl |
DoubleApfloatImpl.addOrSubtract(ApfloatImpl x,
boolean subtract) |
ApfloatImpl |
IntApfloatImpl.addOrSubtract(ApfloatImpl x,
boolean subtract) |
ApfloatImpl |
FloatApfloatImpl.addOrSubtract(ApfloatImpl x,
boolean subtract) |
ApfloatImpl |
LongApfloatImpl.addOrSubtract(ApfloatImpl x,
boolean subtract) |
ApfloatImpl |
IntApfloatBuilder.createApfloat(double value,
long precision,
int radix) |
ApfloatImpl |
LongApfloatBuilder.createApfloat(double value,
long precision,
int radix) |
ApfloatImpl |
FloatApfloatBuilder.createApfloat(double value,
long precision,
int radix) |
ApfloatImpl |
DoubleApfloatBuilder.createApfloat(double value,
long precision,
int radix) |
ApfloatImpl |
IntApfloatBuilder.createApfloat(long value,
long precision,
int radix) |
ApfloatImpl |
LongApfloatBuilder.createApfloat(long value,
long precision,
int radix) |
ApfloatImpl |
FloatApfloatBuilder.createApfloat(long value,
long precision,
int radix) |
ApfloatImpl |
DoubleApfloatBuilder.createApfloat(long value,
long precision,
int radix) |
ApfloatImpl |
IntApfloatBuilder.createApfloat(PushbackReader in,
long precision,
int radix,
boolean isInteger) |
ApfloatImpl |
LongApfloatBuilder.createApfloat(PushbackReader in,
long precision,
int radix,
boolean isInteger) |
ApfloatImpl |
FloatApfloatBuilder.createApfloat(PushbackReader in,
long precision,
int radix,
boolean isInteger) |
ApfloatImpl |
DoubleApfloatBuilder.createApfloat(PushbackReader in,
long precision,
int radix,
boolean isInteger) |
ApfloatImpl |
IntApfloatBuilder.createApfloat(String value,
long precision,
int radix,
boolean isInteger) |
ApfloatImpl |
LongApfloatBuilder.createApfloat(String value,
long precision,
int radix,
boolean isInteger) |
ApfloatImpl |
FloatApfloatBuilder.createApfloat(String value,
long precision,
int radix,
boolean isInteger) |
ApfloatImpl |
DoubleApfloatBuilder.createApfloat(String value,
long precision,
int radix,
boolean isInteger) |
ApfloatImpl |
DoubleApfloatImpl.divideShort(ApfloatImpl x) |
ApfloatImpl |
IntApfloatImpl.divideShort(ApfloatImpl x) |
ApfloatImpl |
FloatApfloatImpl.divideShort(ApfloatImpl x) |
ApfloatImpl |
LongApfloatImpl.divideShort(ApfloatImpl x) |
ApfloatImpl |
DoubleApfloatImpl.frac() |
ApfloatImpl |
IntApfloatImpl.frac() |
ApfloatImpl |
FloatApfloatImpl.frac() |
ApfloatImpl |
LongApfloatImpl.frac() |
ApfloatImpl |
DoubleApfloatImpl.multiply(ApfloatImpl x) |
ApfloatImpl |
IntApfloatImpl.multiply(ApfloatImpl x) |
ApfloatImpl |
FloatApfloatImpl.multiply(ApfloatImpl x) |
ApfloatImpl |
LongApfloatImpl.multiply(ApfloatImpl x) |
ApfloatImpl |
DoubleApfloatImpl.negate() |
ApfloatImpl |
IntApfloatImpl.negate() |
ApfloatImpl |
FloatApfloatImpl.negate() |
ApfloatImpl |
LongApfloatImpl.negate() |
ApfloatImpl |
DoubleApfloatImpl.precision(long precision) |
ApfloatImpl |
IntApfloatImpl.precision(long precision) |
ApfloatImpl |
FloatApfloatImpl.precision(long precision) |
ApfloatImpl |
LongApfloatImpl.precision(long precision) |
Modifier and Type | Method and Description |
---|---|
ApfloatImpl |
DoubleApfloatImpl.addOrSubtract(ApfloatImpl x,
boolean subtract) |
ApfloatImpl |
IntApfloatImpl.addOrSubtract(ApfloatImpl x,
boolean subtract) |
ApfloatImpl |
FloatApfloatImpl.addOrSubtract(ApfloatImpl x,
boolean subtract) |
ApfloatImpl |
LongApfloatImpl.addOrSubtract(ApfloatImpl x,
boolean subtract) |
int |
DoubleApfloatImpl.compareTo(ApfloatImpl x) |
int |
IntApfloatImpl.compareTo(ApfloatImpl x) |
int |
FloatApfloatImpl.compareTo(ApfloatImpl x) |
int |
LongApfloatImpl.compareTo(ApfloatImpl x) |
ApfloatImpl |
DoubleApfloatImpl.divideShort(ApfloatImpl x) |
ApfloatImpl |
IntApfloatImpl.divideShort(ApfloatImpl x) |
ApfloatImpl |
FloatApfloatImpl.divideShort(ApfloatImpl x) |
ApfloatImpl |
LongApfloatImpl.divideShort(ApfloatImpl x) |
long |
DoubleApfloatImpl.equalDigits(ApfloatImpl x) |
long |
IntApfloatImpl.equalDigits(ApfloatImpl x) |
long |
FloatApfloatImpl.equalDigits(ApfloatImpl x) |
long |
LongApfloatImpl.equalDigits(ApfloatImpl x) |
ApfloatImpl |
DoubleApfloatImpl.multiply(ApfloatImpl x) |
ApfloatImpl |
IntApfloatImpl.multiply(ApfloatImpl x) |
ApfloatImpl |
FloatApfloatImpl.multiply(ApfloatImpl x) |
ApfloatImpl |
LongApfloatImpl.multiply(ApfloatImpl x) |
Modifier and Type | Method and Description |
---|---|
ApfloatImpl |
ApfloatImpl.absCeil()
Returns this
ApfloatImpl rounded away from zero. |
ApfloatImpl |
ApfloatImpl.absFloor()
Returns this
ApfloatImpl rounded towards zero. |
ApfloatImpl |
ApfloatImpl.addOrSubtract(ApfloatImpl x,
boolean subtract)
Add or subtract an
ApfloatImpl to this object. |
ApfloatImpl |
ApfloatBuilder.createApfloat(double value,
long precision,
int radix)
Create a new
ApfloatImpl instance from a double . |
ApfloatImpl |
ApfloatBuilder.createApfloat(long value,
long precision,
int radix)
Create a new
ApfloatImpl instance from a long . |
ApfloatImpl |
ApfloatBuilder.createApfloat(PushbackReader in,
long precision,
int radix,
boolean isInteger)
Create a new
ApfloatImpl instance reading from a stream. |
ApfloatImpl |
ApfloatBuilder.createApfloat(String value,
long precision,
int radix,
boolean isInteger)
Create a new
ApfloatImpl instance from a String . |
ApfloatImpl |
ApfloatImpl.divideShort(ApfloatImpl x)
Divide this
ApfloatImpl by an ApfloatImpl that is "short". |
ApfloatImpl |
ApfloatImpl.frac()
Returns the fractional part of this
ApfloatImpl . |
ApfloatImpl |
ApfloatImpl.multiply(ApfloatImpl x)
Multiply this object by an
ApfloatImpl . |
ApfloatImpl |
ApfloatImpl.negate()
Returns this
ApfloatImpl negated. |
ApfloatImpl |
ApfloatImpl.precision(long precision)
Returns this
ApfloatImpl with the specified precision. |
Modifier and Type | Method and Description |
---|---|
ApfloatImpl |
ApfloatImpl.addOrSubtract(ApfloatImpl x,
boolean subtract)
Add or subtract an
ApfloatImpl to this object. |
int |
ApfloatImpl.compareTo(ApfloatImpl x)
Compare this
ApfloatImpl and another number. |
ApfloatImpl |
ApfloatImpl.divideShort(ApfloatImpl x)
Divide this
ApfloatImpl by an ApfloatImpl that is "short". |
long |
ApfloatImpl.equalDigits(ApfloatImpl x)
The number of equal digits in this
ApfloatImpl and another number. |
ApfloatImpl |
ApfloatImpl.multiply(ApfloatImpl x)
Multiply this object by an
ApfloatImpl . |
Copyright © 2019. All rights reserved.