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 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.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 Fraction.multiply(Fraction fraction)
          Multiplies the value of this fraction by another, returning the result in reduced form.
 Fraction Fraction.negate()
          Return the additive inverse of this fraction.
 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.
 Fraction ProperFractionFormat.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.
 

Methods in org.apache.commons.math.fraction with parameters of type Fraction
 Fraction Fraction.add(Fraction fraction)
          Adds the value of this fraction to another, returning the result in reduced form.
 Fraction Fraction.divide(Fraction fraction)
          Divide the value of this fraction by another.
 StringBuffer FractionFormat.format(Fraction fraction, StringBuffer toAppendTo, FieldPosition pos)
          Formats a Fraction object to produce a string.
 StringBuffer ProperFractionFormat.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.
 



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