Class ExtendedRational

  • All Implemented Interfaces:
    Comparable<ExtendedRational>

    @Immutable
    public final class ExtendedRational
    extends Object
    implements Comparable<ExtendedRational>
    This class represents "extended rational": rationals which allow for infinities, negative infinities and undefined numbers.

    Any operation on the numbers is guaranteed to never yield an exception.

    Represented as wrapper around Rational class.