| Package | Description |
|---|---|
| org.sellcom.core.math |
| Modifier and Type | Field | Description |
|---|---|---|
static BigFraction |
BigFraction.ONE |
Fraction of
1/1. |
static BigFraction |
BigFraction.ONE_HALF |
Fraction of
1/2. |
static BigFraction |
BigFraction.ONE_QUARTER |
Fraction of
1/4. |
static BigFraction |
BigFraction.ONE_THIRD |
Fraction of
1/3. |
static BigFraction |
BigFraction.THREE_QUARTERS |
Fraction of
3/4. |
static BigFraction |
BigFraction.TWO_THIRDS |
Fraction of
2/3. |
static BigFraction |
BigFraction.ZERO |
Fraction of
0/1. |
| Modifier and Type | Method | Description |
|---|---|---|
BigFraction |
BigFraction.abs() |
Returns the absolute value of this fraction.
|
BigFraction |
BigFraction.add(long value) |
Returns the sum of this fraction and the given number.
|
BigFraction |
BigFraction.add(java.math.BigInteger value) |
Returns the sum of this fraction and the given number.
|
BigFraction |
BigFraction.add(BigFraction other) |
Returns the sum of this fraction and the given fraction.
|
BigFraction |
BigFraction.divide(long value) |
Returns the quotient of this fraction and the given number.
|
BigFraction |
BigFraction.divide(java.math.BigInteger value) |
Returns the quotient of this fraction and the given number.
|
BigFraction |
BigFraction.divide(BigFraction other) |
Returns the quotient of this fraction and the given fraction.
|
BigFraction |
BigFraction.multiply(long value) |
Returns the product of this fraction and the given number.
|
BigFraction |
BigFraction.multiply(java.math.BigInteger value) |
Returns the product of this fraction and the given number.
|
BigFraction |
BigFraction.multiply(BigFraction other) |
Returns the product of this fraction and the given fraction.
|
BigFraction |
BigFraction.negate() |
Returns the opposite of this fraction.
|
static BigFraction |
BigFraction.parse(java.lang.String text) |
Returns a fraction obtained from the given text string.
|
BigFraction |
BigFraction.pow(int exponent) |
Returns this fraction raised to the power of the given exponent.
|
BigFraction |
BigFraction.reciprocal() |
Return the reciprocal of this fraction.
|
BigFraction |
BigFraction.subtract(long value) |
Returns the difference of this fraction and the given number.
|
BigFraction |
BigFraction.subtract(java.math.BigInteger value) |
Returns the difference of this fraction and the given number.
|
BigFraction |
BigFraction.subtract(BigFraction other) |
Returns the difference of this fraction and the given fraction.
|
static BigFraction |
BigFraction.valueOf(long value) |
Returns a fraction with the given value.
|
static BigFraction |
BigFraction.valueOf(long numerator,
long denominator) |
Returns a fraction with the given numerator and denominator.
|
static BigFraction |
BigFraction.valueOf(java.math.BigInteger value) |
Returns a fraction with the given value.
|
static BigFraction |
BigFraction.valueOf(java.math.BigInteger numerator,
java.math.BigInteger denominator) |
Returns a fraction with the given numerator and denominator.
|
| Modifier and Type | Method | Description |
|---|---|---|
BigFraction |
BigFraction.add(BigFraction other) |
Returns the sum of this fraction and the given fraction.
|
int |
BigFraction.compareTo(BigFraction other) |
|
BigFraction |
BigFraction.divide(BigFraction other) |
Returns the quotient of this fraction and the given fraction.
|
BigFraction |
BigFraction.multiply(BigFraction other) |
Returns the product of this fraction and the given fraction.
|
BigFraction |
BigFraction.subtract(BigFraction other) |
Returns the difference of this fraction and the given fraction.
|