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
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. 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 tothis
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()
Returns a unique fraction instance equals tothis
.static Fraction
Fraction. valueOf(double value)
Converts the given IEEE 754 double-precision value to a fraction.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.
-