Uses of Class org.apache.commons.lang.math.Fraction

Uses in package org.apache.commons.lang.math

Fields of type org.apache.commons.lang.math.Fraction

Fraction
Fraction representation of 4/5.
Fraction
Fraction representation of 1.
Fraction
Fraction representation of 1/5.
Fraction
Fraction representation of 1/2.
Fraction
Fraction representation of 1/4.
Fraction
Fraction representation of 1/3.
Fraction
Fraction representation of 3/5.
Fraction
Fraction representation of 3/4.
Fraction
Fraction representation of 2/5.
Fraction
Fraction representation of 2/4.
Fraction
Fraction representation of 2/3.
Fraction
Fraction representation of 0.

Methods with parameter type org.apache.commons.lang.math.Fraction

Fraction
Fraction.add(Fraction fraction)
Adds the value of this fraction to another, returning the result in reduced form.
Fraction
Divide the value of this fraction by another.
Fraction
Multiplies the value of this fraction by another, returning the result in reduced form.
Fraction
Subtracts the value of another fraction from the value of this one, returning the result in reduced form.

Methods with return type org.apache.commons.lang.math.Fraction

Fraction
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
Divide the value of this fraction by another.
Fraction
Fraction.getFraction(String str)
Creates a Fraction from a String.
Fraction
Fraction.getFraction(double value)
Creates a Fraction instance from a double value.
Fraction
Fraction.getFraction(int numerator, int denominator)
Creates a Fraction instance with the 2 parts of a fraction Y/Z.
Fraction
Fraction.getFraction(int whole, int numerator, int denominator)
Creates a Fraction instance with the 3 parts of a fraction X Y/Z.
Fraction
Fraction.getReducedFraction(int numerator, int denominator)
Creates a Fraction instance with the 2 parts of a fraction Y/Z.
Fraction
Gets a fraction that is the inverse (1/fraction) of this one.
Fraction
Multiplies the value of this fraction by another, returning the result in reduced form.
Fraction
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
Reduce the fraction to the smallest values for the numerator and denominator, returning the result..
Fraction
Subtracts the value of another fraction from the value of this one, returning the result in reduced form.

Copyright © 2001-2005 - Apache Software Foundation