Uses of Class
org.uncommons.maths.number.Rational
-
Packages that use Rational Package Description org.uncommons.maths.number Custom numeric data types and classes for working with java.lang.Number and its sub-classes. -
-
Uses of Rational in org.uncommons.maths.number
Fields in org.uncommons.maths.number declared as Rational Modifier and Type Field Description static RationalRational. HALFConvenient constant representing a value of a half (1/2 as a rational).static RationalRational. ONEConvenient constant representing a value of one (1/1 as a rational).static RationalRational. QUARTERConvenient constant representing a value of a quarter (1/4 as a rational).static RationalRational. THIRDConvenient constant representing a value of a third (1/3 as a rational).static RationalRational. THREE_QUARTERSConvenient constant representing a value of three quarters (3/4 as a rational).static RationalRational. TWO_THIRDSConvenient constant representing a value of two thirds (2/3 as a rational).static RationalRational. ZEROConvenient constant representing a value of zero (0/1 as a rational).Methods in org.uncommons.maths.number that return Rational Modifier and Type Method Description RationalRational. add(Rational value)Add the specified value to this value and return the result as a new object (also a rational).RationalRational. divide(Rational value)Divide this rational by the specified value and return the result as a new object (also a Rational).RationalRational. multiply(Rational value)Multiply this rational by the specified value and return the result as a new object (also a Rational).RationalRational. subtract(Rational value)Subtract the specified value from this value and return the result as a new object (also a rational).Methods in org.uncommons.maths.number with parameters of type Rational Modifier and Type Method Description RationalRational. add(Rational value)Add the specified value to this value and return the result as a new object (also a rational).intRational. compareTo(Rational other)Compares this value with the specified object for order.RationalRational. divide(Rational value)Divide this rational by the specified value and return the result as a new object (also a Rational).RationalRational. multiply(Rational value)Multiply this rational by the specified value and return the result as a new object (also a Rational).RationalRational. subtract(Rational value)Subtract the specified value from this value and return the result as a new object (also a rational).
-