Uses of Class
org.apache.commons.numbers.fraction.BigFraction
Packages that use BigFraction
Package
Description
Field-related utilities.
Fraction number type and fraction number formatting.
-
Uses of BigFraction in org.apache.commons.numbers.field
Methods in org.apache.commons.numbers.field that return BigFraction -
Uses of BigFraction in org.apache.commons.numbers.fraction
Fields in org.apache.commons.numbers.fraction declared as BigFractionModifier and TypeFieldDescriptionstatic final BigFraction
BigFraction.ONE
A fraction representing "1".static final BigFraction
BigFraction.ZERO
A fraction representing "0".Methods in org.apache.commons.numbers.fraction that return BigFractionModifier and TypeMethodDescriptionBigFraction.abs()
Returns the absolute value of this fraction.BigFraction.add
(int value) Adds the specifiedvalue
to this fraction, returning the result in reduced form.BigFraction.add
(long value) Adds the specifiedvalue
to this fraction, returning the result in reduced form.BigFraction.add
(BigInteger value) Adds the specifiedvalue
to this fraction, returning the result in reduced form.BigFraction.add
(BigFraction value) Adds the specifiedvalue
to this fraction, returning the result in reduced form.BigFraction.divide
(int value) Divide this fraction by the passedvalue
, returning the result in reduced form.BigFraction.divide
(long value) Divide this fraction by the passedvalue
, returning the result in reduced form.BigFraction.divide
(BigInteger value) Divide this fraction by the passedvalue
, returning the result in reduced form.BigFraction.divide
(BigFraction value) Divide this fraction by the passedvalue
, 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.private static BigFraction
BigFraction.from
(double value, double epsilon, int maxDenominator, int maxIterations) Create a fraction given the double value and either the maximum error allowed or the maximum number of denominator digits.static BigFraction
BigFraction.from
(double value, int maxDenominator) Create a fraction given the double value and maximum denominator.BigFraction.multiply
(int value) Multiply this fraction by the passedvalue
, returning the result in reduced form.BigFraction.multiply
(long value) Multiply this fraction by the passedvalue
, returning the result in reduced form.BigFraction.multiply
(BigInteger value) Multiply this fraction by the passedvalue
, returning the result in reduced form.BigFraction.multiply
(BigFraction value) Multiply this fraction by the passedvalue
, returning the result in reduced form.BigFraction.negate()
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.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.BigFraction.one()
static BigFraction
Returns aBigFraction
instance representing the specified strings
.BigFraction.pow
(int exponent) Returns aBigFraction
whose value isthisexponent
, returning the result in reduced form.BigFraction.reciprocal()
Multiplicative inverse.BigFraction.subtract
(int value) Subtracts the specifiedvalue
from this fraction, returning the result in reduced form.BigFraction.subtract
(long value) Subtracts the specifiedvalue
from this fraction, returning the result in reduced form.BigFraction.subtract
(BigInteger value) Subtracts the specifiedvalue
from this fraction, returning the result in reduced form.BigFraction.subtract
(BigFraction value) Subtracts the specifiedvalue
from this fraction, returning the result in reduced form.BigFraction.zero()
Methods in org.apache.commons.numbers.fraction with parameters of type BigFractionModifier and TypeMethodDescriptionBigFraction.add
(BigFraction value) Adds the specifiedvalue
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.divide
(BigFraction value) Divide this fraction by the passedvalue
, returning the result in reduced form.BigFraction.multiply
(BigFraction value) Multiply this fraction by the passedvalue
, returning the result in reduced form.BigFraction.subtract
(BigFraction value) Subtracts the specifiedvalue
from this fraction, returning the result in reduced form.