Uses of Class
org.apache.commons.lang.math.Fraction
- 
Packages that use Fraction Package Description org.apache.commons.lang.math Extendsjava.mathfor business mathematical classes. - 
- 
Uses of Fraction in org.apache.commons.lang.math
Fields in org.apache.commons.lang.math declared as Fraction Modifier and Type Field Description static FractionFraction. FOUR_FIFTHSFractionrepresentation of 4/5.static FractionFraction. ONEFractionrepresentation of 1.static FractionFraction. ONE_FIFTHFractionrepresentation of 1/5.static FractionFraction. ONE_HALFFractionrepresentation of 1/2.static FractionFraction. ONE_QUARTERFractionrepresentation of 1/4.static FractionFraction. ONE_THIRDFractionrepresentation of 1/3.static FractionFraction. THREE_FIFTHSFractionrepresentation of 3/5.static FractionFraction. THREE_QUARTERSFractionrepresentation of 3/4.static FractionFraction. TWO_FIFTHSFractionrepresentation of 2/5.static FractionFraction. TWO_QUARTERSFractionrepresentation of 2/4.static FractionFraction. TWO_THIRDSFractionrepresentation of 2/3.static FractionFraction. ZEROFractionrepresentation of 0.Methods in org.apache.commons.lang.math that return Fraction Modifier and Type Method Description FractionFraction. abs()Gets a fraction that is the positive equivalent of this one.FractionFraction. add(Fraction fraction)Adds the value of this fraction to another, returning the result in reduced form.FractionFraction. divideBy(Fraction fraction)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.FractionFraction. invert()Gets a fraction that is the inverse (1/fraction) of this one.FractionFraction. multiplyBy(Fraction fraction)Multiplies the value of this fraction by another, returning the result in reduced form.FractionFraction. negate()Gets a fraction that is the negative (-fraction) of this one.FractionFraction. pow(int power)Gets a fraction that is raised to the passed in power.FractionFraction. reduce()Reduce the fraction to the smallest values for the numerator and denominator, returning the result.FractionFraction. subtract(Fraction fraction)Subtracts the value of another fraction from the value of this one, returning the result in reduced form.Methods in org.apache.commons.lang.math with parameters of type Fraction Modifier and Type Method Description FractionFraction. add(Fraction fraction)Adds the value of this fraction to another, returning the result in reduced form.FractionFraction. divideBy(Fraction fraction)Divide the value of this fraction by another.FractionFraction. multiplyBy(Fraction fraction)Multiplies the value of this fraction by another, returning the result in reduced form.FractionFraction. subtract(Fraction fraction)Subtracts the value of another fraction from the value of this one, returning the result in reduced form. 
 -