Uses of Class
org.apache.sis.math.Fraction

Packages that use Fraction
Package
Description
A set of mathematical objects and algebraic utilities.
  • Uses of Fraction in org.apache.sis.math

    Classes in org.apache.sis.math that implement interfaces with type arguments of type Fraction
    Modifier and Type
    Class
    Description
    final class 
    A value class for rational numbers.
    Methods in org.apache.sis.math that return Fraction
    Modifier and Type
    Method
    Description
    Fraction.add(Fraction other)
    Returns the simplified result of adding the given fraction to this fraction.
    Fraction.divide(Fraction other)
    Returns the simplified result of dividing this fraction by the given fraction.
    Fraction.inverse()
    Returns the inverse value of this fraction.
    Fraction.multiply(Fraction other)
    Returns the simplified result of multiplying the given fraction with this fraction.
    Fraction.negate()
    Returns the negative value of this fraction.
    Fraction.simplify()
    Returns a fraction equivalent to this but represented by the smallest possible numerator and denominator values.
    Fraction.subtract(Fraction other)
    Returns the simplified result of subtracting the given fraction from this fraction.
    Fraction.unique()
    Returns a unique fraction instance equals to this.
    static Fraction
    Fraction.valueOf(double value)
    Converts the given IEEE 754 double-precision value to a fraction.
    static Fraction
    Fraction.valueOf(long numerator, long denominator)
    Returns the given fraction after simplification.
    Methods in org.apache.sis.math with parameters of type Fraction
    Modifier and Type
    Method
    Description
    Fraction.add(Fraction other)
    Returns the simplified result of adding the given fraction to this fraction.
    int
    Fraction.compareTo(Fraction other)
    Compares this fraction with the given one for order.
    Fraction.divide(Fraction other)
    Returns the simplified result of dividing this fraction by the given fraction.
    Fraction.multiply(Fraction other)
    Returns the simplified result of multiplying the given fraction with this fraction.
    Fraction.subtract(Fraction other)
    Returns the simplified result of subtracting the given fraction from this fraction.