Package | Description |
---|---|
org.apache.sis.math |
A set of mathematical objects and algebraic utilities.
|
Modifier and Type | Method and 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 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()
Returns a unique fraction instance equals to
this . |
Modifier and Type | Method and 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.
|
Copyright © 2010–2017 The Apache Software Foundation. All rights reserved.