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
Subclasses with type arguments of type BigFraction in org.apache.commons.numbers.fieldMethods in org.apache.commons.numbers.field that return BigFraction -
Uses of BigFraction in org.apache.commons.numbers.fraction
Classes in org.apache.commons.numbers.fraction that implement interfaces with type arguments of type BigFractionModifier and TypeClassDescriptionfinal classRepresentation of a rational number using arbitrary precision.final classRepresentation of a rational number using arbitrary precision.Fields in org.apache.commons.numbers.fraction declared as BigFractionModifier and TypeFieldDescriptionstatic final BigFractionBigFraction.ONEA fraction representing "1".static final BigFractionBigFraction.ZEROA 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 specifiedvalueto this fraction, returning the result in reduced form.BigFraction.add(long value) Adds the specifiedvalueto this fraction, returning the result in reduced form.BigFraction.add(BigInteger value) Adds the specifiedvalueto this fraction, returning the result in reduced form.BigFraction.add(BigFraction value) Adds the specifiedvalueto 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 BigFractionBigFraction.from(double value) Create a fraction given the double value.static BigFractionBigFraction.from(double value, double epsilon, int maxIterations) Create a fraction given the double value and maximum error allowed.private static BigFractionBigFraction.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 BigFractionBigFraction.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 BigFractionBigFraction.of(int num) Create a fraction given the numerator.static BigFractionBigFraction.of(int num, int den) Create a fraction given the numerator and denominator.static BigFractionBigFraction.of(long num) Create a fraction given the numerator.static BigFractionBigFraction.of(long num, long den) Create a fraction given the numerator and denominator.static BigFractionBigFraction.of(BigInteger num) Create a fraction given the numerator.static BigFractionBigFraction.of(BigInteger num, BigInteger den) Create a fraction given the numerator and denominator.BigFraction.one()static BigFractionReturns aBigFractioninstance representing the specified strings.BigFraction.pow(int exponent) Returns aBigFractionwhose value isthisexponent, returning the result in reduced form.BigFraction.reciprocal()Multiplicative inverse.BigFraction.subtract(int value) Subtracts the specifiedvaluefrom this fraction, returning the result in reduced form.BigFraction.subtract(long value) Subtracts the specifiedvaluefrom this fraction, returning the result in reduced form.BigFraction.subtract(BigInteger value) Subtracts the specifiedvaluefrom this fraction, returning the result in reduced form.BigFraction.subtract(BigFraction value) Subtracts the specifiedvaluefrom 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 specifiedvalueto this fraction, returning the result in reduced form.intBigFraction.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 specifiedvaluefrom this fraction, returning the result in reduced form.