Modifier and Type | Field and Description |
---|---|
static BigFraction |
BigFraction.ONE
A fraction representing "1".
|
static BigFraction |
BigFraction.ZERO
A fraction representing "0".
|
Modifier and Type | Method and Description |
---|---|
BigFraction |
BigFraction.abs()
Returns the absolute value of this fraction.
|
BigFraction |
BigFraction.add(BigFraction value)
Adds the specified
value to this fraction, returning
the result in reduced form. |
BigFraction |
BigFraction.add(BigInteger value)
Adds the specified
value to this fraction, returning
the result in reduced form. |
BigFraction |
BigFraction.add(int value)
Adds the specified
value to this fraction, returning
the result in reduced form. |
BigFraction |
BigFraction.add(long value)
Adds the specified
value to this fraction, returning
the result in reduced form. |
BigFraction |
BigFraction.divide(BigFraction value)
Divide this fraction by the passed
value , returning
the result in reduced form. |
BigFraction |
BigFraction.divide(BigInteger value)
Divide this fraction by the passed
value , returning
the result in reduced form. |
BigFraction |
BigFraction.divide(int value)
Divide this fraction by the passed
value , returning
the result in reduced form. |
BigFraction |
BigFraction.divide(long value)
Divide this fraction by the passed
value , returning
the result in reduced form. |
static BigFraction |
BigFraction.from(double value)
Create a fraction given the double value.
|
static BigFraction |
BigFraction.from(double value,
double epsilon,
int maxIterations)
Create a fraction given the double value and maximum error allowed.
|
static BigFraction |
BigFraction.from(double value,
int maxDenominator)
Create a fraction given the double value and maximum denominator.
|
BigFraction |
BigFraction.multiply(BigFraction value)
Multiply this fraction by the passed
value , returning
the result in reduced form. |
BigFraction |
BigFraction.multiply(BigInteger value)
Multiply this fraction by the passed
value , returning
the result in reduced form. |
BigFraction |
BigFraction.multiply(int value)
Multiply this fraction by the passed
value , returning
the result in reduced form. |
BigFraction |
BigFraction.multiply(long value)
Multiply this fraction by the passed
value , returning
the result in reduced form. |
BigFraction |
BigFraction.negate() |
static BigFraction |
BigFraction.of(BigInteger num)
Create a fraction given the numerator.
|
static BigFraction |
BigFraction.of(BigInteger num,
BigInteger den)
Create a fraction given the numerator and denominator.
|
static BigFraction |
BigFraction.of(int num)
Create a fraction given the numerator.
|
static BigFraction |
BigFraction.of(int num,
int den)
Create a fraction given the numerator and denominator.
|
static BigFraction |
BigFraction.of(long num)
Create a fraction given the numerator.
|
static BigFraction |
BigFraction.of(long num,
long den)
Create a fraction given the numerator and denominator.
|
BigFraction |
BigFraction.one() |
static BigFraction |
BigFraction.parse(String s)
Returns a
BigFraction instance representing the specified string s . |
BigFraction |
BigFraction.pow(int exponent)
Returns a
BigFraction whose value is
thisexponent , returning the result in reduced form. |
BigFraction |
BigFraction.reciprocal() |
BigFraction |
BigFraction.subtract(BigFraction value)
Subtracts the specified
value from this fraction, returning
the result in reduced form. |
BigFraction |
BigFraction.subtract(BigInteger value)
Subtracts the specified
value from this fraction, returning
the result in reduced form. |
BigFraction |
BigFraction.subtract(int value)
Subtracts the specified
value from this fraction, returning
the result in reduced form. |
BigFraction |
BigFraction.subtract(long value)
Subtracts the specified
value from this fraction, returning
the result in reduced form. |
BigFraction |
BigFraction.zero() |
Modifier and Type | Method and Description |
---|---|
BigFraction |
BigFraction.add(BigFraction value)
Adds the specified
value to this fraction, returning
the result in reduced form. |
int |
BigFraction.compareTo(BigFraction other)
Compares this object with the specified object for order using the signed magnitude.
|
BigFraction |
BigFraction.divide(BigFraction value)
Divide this fraction by the passed
value , returning
the result in reduced form. |
BigFraction |
BigFraction.multiply(BigFraction value)
Multiply this fraction by the passed
value , returning
the result in reduced form. |
BigFraction |
BigFraction.subtract(BigFraction value)
Subtracts the specified
value from this fraction, returning
the result in reduced form. |
Copyright © 2017–2022 The Apache Software Foundation. All rights reserved.