| Package | Description | 
|---|---|
| org.apache.commons.lang3.math | Extends  java.mathfor business mathematical classes. | 
| Modifier and Type | Field and Description | 
|---|---|
| static Fraction | Fraction. FOUR_FIFTHSFractionrepresentation of 4/5. | 
| static Fraction | Fraction. ONEFractionrepresentation of 1. | 
| static Fraction | Fraction. ONE_FIFTHFractionrepresentation of 1/5. | 
| static Fraction | Fraction. ONE_HALFFractionrepresentation of 1/2. | 
| static Fraction | Fraction. ONE_QUARTERFractionrepresentation of 1/4. | 
| static Fraction | Fraction. ONE_THIRDFractionrepresentation of 1/3. | 
| static Fraction | Fraction. THREE_FIFTHSFractionrepresentation of 3/5. | 
| static Fraction | Fraction. THREE_QUARTERSFractionrepresentation of 3/4. | 
| static Fraction | Fraction. TWO_FIFTHSFractionrepresentation of 2/5. | 
| static Fraction | Fraction. TWO_QUARTERSFractionrepresentation of 2/4. | 
| static Fraction | Fraction. TWO_THIRDSFractionrepresentation of 2/3. | 
| static Fraction | Fraction. ZEROFractionrepresentation of 0. | 
| Modifier and Type | Method and Description | 
|---|---|
| Fraction | Fraction. abs()Gets a fraction that is the positive equivalent of this one. | 
| Fraction | Fraction. add(Fraction fraction)Adds the value of this fraction to another, returning the result in reduced form. | 
| Fraction | Fraction. divideBy(Fraction fraction)Divide the value of this fraction by another. | 
| static Fraction | Fraction. getFraction(double value)Creates a  Fractioninstance from adoublevalue. | 
| static Fraction | Fraction. getFraction(int numerator,
           int denominator)Creates a  Fractioninstance with the 2 parts
 of a fraction Y/Z. | 
| static Fraction | Fraction. getFraction(int whole,
           int numerator,
           int denominator)Creates a  Fractioninstance with the 3 parts
 of a fraction X Y/Z. | 
| static Fraction | Fraction. getFraction(String str)Creates a Fraction from a  String. | 
| static Fraction | Fraction. getReducedFraction(int numerator,
                  int denominator)Creates a reduced  Fractioninstance with the 2 parts
 of a fraction Y/Z. | 
| Fraction | Fraction. invert()Gets a fraction that is the inverse (1/fraction) of this one. | 
| Fraction | Fraction. multiplyBy(Fraction fraction)Multiplies the value of this fraction by another, returning the 
 result in reduced form. | 
| Fraction | Fraction. negate()Gets a fraction that is the negative (-fraction) of this one. | 
| Fraction | Fraction. pow(int power)Gets a fraction that is raised to the passed in power. | 
| Fraction | Fraction. reduce()Reduce the fraction to the smallest values for the numerator and
 denominator, returning the result. | 
| Fraction | Fraction. subtract(Fraction fraction)Subtracts the value of another fraction from the value of this one, 
 returning the result in reduced form. | 
| Modifier and Type | Method and Description | 
|---|---|
| Fraction | Fraction. add(Fraction fraction)Adds the value of this fraction to another, returning the result in reduced form. | 
| int | Fraction. compareTo(Fraction other)Compares this object to another based on size. | 
| Fraction | Fraction. divideBy(Fraction fraction)Divide the value of this fraction by another. | 
| Fraction | Fraction. multiplyBy(Fraction fraction)Multiplies the value of this fraction by another, returning the 
 result in reduced form. | 
| Fraction | Fraction. subtract(Fraction fraction)Subtracts the value of another fraction from the value of this one, 
 returning the result in reduced form. | 
Copyright © 2001–2016 The Apache Software Foundation. All rights reserved.