| Package | Description | 
|---|---|
| org.apache.commons.math3.fraction | Fraction number type and fraction number formatting. | 
| org.apache.commons.math3.linear | Linear algebra support. | 
| Modifier and Type | Field and Description | 
|---|---|
| static Fraction | Fraction. FOUR_FIFTHSA fraction representing "4/5". | 
| static Fraction | Fraction. MINUS_ONEA fraction representing "-1 / 1". | 
| static Fraction | Fraction. ONEA fraction representing "1". | 
| static Fraction | Fraction. ONE_FIFTHA fraction representing "1/5". | 
| static Fraction | Fraction. ONE_HALFA fraction representing "1/2". | 
| static Fraction | Fraction. ONE_QUARTERA fraction representing "1/4". | 
| static Fraction | Fraction. ONE_THIRDA fraction representing "1/3". | 
| static Fraction | Fraction. THREE_FIFTHSA fraction representing "3/5". | 
| static Fraction | Fraction. THREE_QUARTERSA fraction representing "3/4". | 
| static Fraction | Fraction. TWOA fraction representing "2 / 1". | 
| static Fraction | Fraction. TWO_FIFTHSA fraction representing "2/5". | 
| static Fraction | Fraction. TWO_QUARTERSA fraction representing "2/4". | 
| static Fraction | Fraction. TWO_THIRDSA fraction representing "2/3". | 
| static Fraction | Fraction. ZEROA fraction representing "0". | 
| Modifier and Type | Method and Description | 
|---|---|
| Fraction | Fraction. abs()Returns the absolute value of this fraction. | 
| Fraction | Fraction. add(Fraction fraction)Adds the value of this fraction to another, returning the result in reduced form. | 
| Fraction | Fraction. add(int i)Add an integer to the fraction. | 
| Fraction | Fraction. divide(Fraction fraction)Divide the value of this fraction by another. | 
| Fraction | Fraction. divide(int i)Divide the fraction by an integer. | 
| Fraction | FractionField. getOne()Get the multiplicative identity of the field. | 
| static Fraction | Fraction. getReducedFraction(int numerator,
                  int denominator)Creates a  Fractioninstance with the 2 parts
 of a fraction Y/Z. | 
| Fraction | FractionField. getZero()Get the additive identity of the field. | 
| Fraction | Fraction. multiply(Fraction fraction)Multiplies the value of this fraction by another, returning the
 result in reduced form. | 
| Fraction | Fraction. multiply(int i)Multiply the fraction by an integer. | 
| Fraction | Fraction. negate()Return the additive inverse of this fraction. | 
| Fraction | FractionFormat. parse(String source)Parses a string to produce a  Fractionobject. | 
| Fraction | ProperFractionFormat. parse(String source,
     ParsePosition pos)Parses a string to produce a  Fractionobject. | 
| Fraction | FractionFormat. parse(String source,
     ParsePosition pos)Parses a string to produce a  Fractionobject. | 
| Fraction | Fraction. reciprocal()Return the multiplicative inverse of this fraction. | 
| Fraction | Fraction. subtract(Fraction fraction)Subtracts the value of another fraction from the value of this one,
 returning the result in reduced form. | 
| Fraction | Fraction. subtract(int i)Subtract an integer from the fraction. | 
| Modifier and Type | Method and Description | 
|---|---|
| Class<? extends FieldElement<Fraction>> | FractionField. getRuntimeClass()Returns the runtime class of the FieldElement. | 
| 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 object)Compares this object to another based on size. | 
| Fraction | Fraction. divide(Fraction fraction)Divide the value of this fraction by another. | 
| StringBuffer | ProperFractionFormat. format(Fraction fraction,
      StringBuffer toAppendTo,
      FieldPosition pos)Formats a  Fractionobject to produce a string. | 
| StringBuffer | FractionFormat. format(Fraction fraction,
      StringBuffer toAppendTo,
      FieldPosition pos)Formats a  Fractionobject to produce a string. | 
| static String | FractionFormat. formatFraction(Fraction f)This static method calls formatFraction() on a default instance of
 FractionFormat. | 
| Fraction | Fraction. multiply(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. | 
| Modifier and Type | Method and Description | 
|---|---|
| static Array2DRowRealMatrix | MatrixUtils. fractionMatrixToRealMatrix(FieldMatrix<Fraction> m) | 
Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.