Uses of Class
org.apache.commons.lang3.math.Fraction
Packages that use Fraction
-
Uses of Fraction in org.apache.commons.lang3.math
Fields in org.apache.commons.lang3.math declared as FractionModifier and TypeFieldDescriptionstatic final FractionFraction.FOUR_FIFTHSFractionrepresentation of 4/5.static final FractionFraction.ONEFractionrepresentation of 1.static final FractionFraction.ONE_FIFTHFractionrepresentation of 1/5.static final FractionFraction.ONE_HALFFractionrepresentation of 1/2.static final FractionFraction.ONE_QUARTERFractionrepresentation of 1/4.static final FractionFraction.ONE_THIRDFractionrepresentation of 1/3.static final FractionFraction.THREE_FIFTHSFractionrepresentation of 3/5.static final FractionFraction.THREE_QUARTERSFractionrepresentation of 3/4.static final FractionFraction.TWO_FIFTHSFractionrepresentation of 2/5.static final FractionFraction.TWO_QUARTERSFractionrepresentation of 2/4.static final FractionFraction.TWO_THIRDSFractionrepresentation of 2/3.static final FractionFraction.ZEROFractionrepresentation of 0.Methods in org.apache.commons.lang3.math that return FractionModifier and TypeMethodDescriptionFraction.abs()Gets a fraction that is the positive equivalent of this one.Adds the value of this fraction to another, returning the result in reduced form.Divide the value of this fraction by another.static FractionFraction.getFraction(double value) Creates aFractioninstance from adoublevalue.static FractionFraction.getFraction(int numerator, int denominator) Creates aFractioninstance with the 2 parts of a fraction Y/Z.static FractionFraction.getFraction(int whole, int numerator, int denominator) Creates aFractioninstance with the 3 parts of a fraction X Y/Z.static FractionFraction.getFraction(String str) Creates a Fraction from aString.static FractionFraction.getReducedFraction(int numerator, int denominator) Creates a reducedFractioninstance with the 2 parts of a fraction Y/Z.Fraction.invert()Gets a fraction that is the inverse (1/fraction) of this one.Fraction.multiplyBy(Fraction fraction) Multiplies the value of this fraction by another, returning the result in reduced form.Fraction.negate()Gets a fraction that is the negative (-fraction) of this one.Fraction.pow(int power) Gets a fraction that is raised to the passed in power.Fraction.reduce()Reduce the fraction to the smallest values for the numerator and denominator, returning the result.Subtracts the value of another fraction from the value of this one, returning the result in reduced form.Methods in org.apache.commons.lang3.math with parameters of type FractionModifier and TypeMethodDescriptionAdds the value of this fraction to another, returning the result in reduced form.intCompares this object to another based on size.Divide the value of this fraction by another.Fraction.multiplyBy(Fraction fraction) Multiplies the value of this fraction by another, returning the result in reduced form.Subtracts the value of another fraction from the value of this one, returning the result in reduced form.