## Uses of Class
org.apache.commons.math3.fraction.Fraction

- Packages that use Fraction
  Package | Description
  --- | ---
  org.apache.commons.math3.fraction | Fraction number type and fraction number formatting.
  org.apache.commons.math3.linear | Linear algebra support.

- - ### Uses of Fraction in org.apache.commons.math3.fraction

    Fields in org.apache.commons.math3.fraction declared as Fraction
    Modifier and Type | Field and Description
    --- | ---
    `static Fraction` | Fraction.`FOUR_FIFTHS` A fraction representing "4/5".
    `static Fraction` | Fraction.`MINUS_ONE` A fraction representing "-1 / 1".
    `static Fraction` | Fraction.`ONE` A fraction representing "1".
    `static Fraction` | Fraction.`ONE_FIFTH` A fraction representing "1/5".
    `static Fraction` | Fraction.`ONE_HALF` A fraction representing "1/2".
    `static Fraction` | Fraction.`ONE_QUARTER` A fraction representing "1/4".
    `static Fraction` | Fraction.`ONE_THIRD` A fraction representing "1/3".
    `static Fraction` | Fraction.`THREE_FIFTHS` A fraction representing "3/5".
    `static Fraction` | Fraction.`THREE_QUARTERS` A fraction representing "3/4".
    `static Fraction` | Fraction.`TWO` A fraction representing "2 / 1".
    `static Fraction` | Fraction.`TWO_FIFTHS` A fraction representing "2/5".
    `static Fraction` | Fraction.`TWO_QUARTERS` A fraction representing "2/4".
    `static Fraction` | Fraction.`TWO_THIRDS` A fraction representing "2/3".
    `static Fraction` | Fraction.`ZERO` A fraction representing "0".

    Methods in org.apache.commons.math3.fraction that return Fraction
    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 `Fraction` instance 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 `Fraction` object.
    `Fraction` | ProperFractionFormat.`parse(String source, ParsePosition pos)` Parses a string to produce a `Fraction` object.
    `Fraction` | FractionFormat.`parse(String source, ParsePosition pos)` Parses a string to produce a `Fraction` object.
    `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.

    Methods in org.apache.commons.math3.fraction that return types with arguments of type Fraction
    Modifier and Type | Method and Description
    --- | ---
    `Class<? extends FieldElement<Fraction>>` | FractionField.`getRuntimeClass()` Returns the runtime class of the FieldElement.

    Methods in org.apache.commons.math3.fraction with parameters of type Fraction
    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 `Fraction` object to produce a string.
    `StringBuffer` | FractionFormat.`format(Fraction fraction, StringBuffer toAppendTo, FieldPosition pos)` Formats a `Fraction` object 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.

  - ### Uses of Fraction in org.apache.commons.math3.linear

    Method parameters in org.apache.commons.math3.linear with type arguments of type Fraction
    Modifier and Type | Method and Description
    --- | ---
    `static Array2DRowRealMatrix` | MatrixUtils.`fractionMatrixToRealMatrix(FieldMatrix<Fraction> m)` Convert a `FieldMatrix`/`Fraction` matrix to a `RealMatrix`.

Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.