Uses of Class
com.aoapps.lang.math.BigFraction
-
Uses of BigFraction in com.aoapps.lang.math
Modifier and TypeFieldDescriptionstatic final BigFraction
BigFraction.ONE
static final BigFraction
BigFraction.ZERO
Modifier and TypeMethodDescriptionBigFraction.abs()
Gets the absolute value, but is not reduced.BigFraction.add
(BigFraction val) Adds two fractions, returning the value in lowest terms.BigFraction.divide
(BigFraction val) Divides two fractions, returning the value in lowest terms.BigFraction.max
(BigFraction val) Gets the higher of the two fractions.BigFraction.min
(BigFraction val) Gets the lower of the two fractions.BigFraction.multiply
(BigFraction val) Multiplies two fractions, returning the value in lowest terms.BigFraction.negate()
Negates the value, but is not reduced.BigFraction.pow
(int exponent) Raises this fraction to the provided exponent, returning the value in lowest terms.BigFraction.reduce()
Reduces this fraction to its lowest terms.BigFraction.subtract
(BigFraction val) Subtracts two fractions, returning the value in lowest terms.static BigFraction
BigFraction.valueOf
(long numerator, long denominator, boolean displayPercentage) static BigFraction
BigFraction.valueOf
(BigDecimal value, boolean displayPercentage) Gets the big decimal as a fraction, reduced.static BigFraction
BigFraction.valueOf
(BigInteger value, boolean displayPercentage) static BigFraction
BigFraction.valueOf
(BigInteger numerator, BigInteger denominator, boolean displayPercentage) Modifier and TypeMethodDescriptionBigFraction.add
(BigFraction val) Adds two fractions, returning the value in lowest terms.int
BigFraction.compareTo
(BigFraction o) static BigDecimal[]
BigFraction.distributeValue
(BigDecimal total, BigFraction.DistributionMethod distributionMethod, BigFraction... fractions) Evenly distributes the total value of BigDecimal by fractional amounts.BigFraction.divide
(BigFraction val) Divides two fractions, returning the value in lowest terms.BigFraction.max
(BigFraction val) Gets the higher of the two fractions.BigFraction.min
(BigFraction val) Gets the lower of the two fractions.BigFraction.multiply
(BigFraction val) Multiplies two fractions, returning the value in lowest terms.BigFraction.subtract
(BigFraction val) Subtracts two fractions, returning the value in lowest terms.