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

Packages that use Fraction
Package
Description
org.apache.sis.math
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`
  `Fraction`
  A value class for rational numbers.
  Methods in org.apache.sis.math that return Fraction
  Modifier and Type
  Method
  Description
  `Fraction`
  Fraction.`add(Fraction other)`
  Returns the simplified result of adding the given fraction to this fraction.
  `Fraction`
  Fraction.`divide(Fraction other)`
  Returns the simplified result of dividing this fraction by the given fraction.
  `Fraction`
  Fraction.`inverse()`
  Returns the inverse value of this fraction.
  `Fraction`
  Fraction.`multiply(Fraction other)`
  Returns the simplified result of multiplying the given fraction with this fraction.
  `Fraction`
  Fraction.`negate()`
  Returns the negative value of this fraction.
  `Fraction`
  Fraction.`simplify()`
  Returns a fraction equivalent to `this` but represented by the smallest possible numerator and denominator values.
  `Fraction`
  Fraction.`subtract(Fraction other)`
  Returns the simplified result of subtracting the given fraction from this fraction.
  `Fraction`
  Fraction.`unique()`
  Deprecated, for removal: This API element is subject to removal in a future version.
  `Fraction` may become a value object with a future Java version, and this method is incompatible with value objects.
  `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`
  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`
  Fraction.`divide(Fraction other)`
  Returns the simplified result of dividing this fraction by the given fraction.
  `Fraction`
  Fraction.`multiply(Fraction other)`
  Returns the simplified result of multiplying the given fraction with this fraction.
  `Fraction`
  Fraction.`subtract(Fraction other)`
  Returns the simplified result of subtracting the given fraction from this fraction.