Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV NEXT | FRAMES NO FRAMES

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

Packages that use Fraction
org.apache.commons.math.fraction | Fraction number type and fraction number formatting.

Uses of Fraction in org.apache.commons.math.fraction

Fields in org.apache.commons.math.fraction declared as Fraction
`static Fraction` | `Fraction.ONE` A fraction representing "1 / 1".
`static Fraction` | `Fraction.ZERO` A fraction representing "0 / 1".

Methods in org.apache.commons.math.fraction that return Fraction
`Fraction` | `ProperFractionFormat.parse(String source, ParsePosition pos)` Parses a string to produce a `Fraction` object.
`Fraction` | `Fraction.abs()` Returns the absolute value of this fraction.
`Fraction` | `Fraction.negate()` Return the additive inverse of this fraction.
`Fraction` | `Fraction.reciprocal()` Return the multiplicative inverse of this fraction.
`Fraction` | `Fraction.add(Fraction fraction)` Adds the value of this fraction to 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.
`Fraction` | `Fraction.multiply(Fraction fraction)` Multiplies the value of this fraction by another, returning the result in reduced form.
`Fraction` | `Fraction.divide(Fraction fraction)` Divide the value of this fraction by another.
`static Fraction` | `Fraction.getReducedFraction(int numerator, int denominator)` Creates a `Fraction` instance with the 2 parts of a fraction Y/Z.
`Fraction` | `FractionFormat.parse(String source)` Parses a string to produce a `Fraction` object.
`Fraction` | `FractionFormat.parse(String source, ParsePosition pos)` Parses a string to produce a `Fraction` object.

Methods in org.apache.commons.math.fraction with parameters of type Fraction
`StringBuffer` | `ProperFractionFormat.format(Fraction fraction, StringBuffer toAppendTo, FieldPosition pos)` Formats a `Fraction` object to produce a string.
`Fraction` | `Fraction.add(Fraction fraction)` Adds the value of this fraction to 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.
`Fraction` | `Fraction.multiply(Fraction fraction)` Multiplies the value of this fraction by another, returning the result in reduced form.
`Fraction` | `Fraction.divide(Fraction fraction)` Divide the value of this fraction by another.
`static String` | `FractionFormat.formatFraction(Fraction f)` This static method calls formatFraction() on a default instance of FractionFormat.
`StringBuffer` | `FractionFormat.format(Fraction fraction, StringBuffer toAppendTo, FieldPosition pos)` Formats a `Fraction` object to produce a string.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV NEXT | FRAMES NO FRAMES

Copyright © 2003-2005 The Apache Software Foundation. All Rights Reserved.