rationalIsFractional

io.github.edadma.numbers.Rational.rationalIsFractional

Attributes

Graph
Supertypes
trait Fractional[Rational]
trait Numeric[Rational]
trait Ordering[Rational]
trait PartialOrdering[Rational]
trait Equiv[Rational]
trait Serializable
trait Comparator[Rational]
class Object
trait Matchable
class Any
Show all
Self type

Members list

Type members

Inherited classlikes

class FractionalOps(lhs: T)

Attributes

Inherited from:
Fractional
Supertypes
class NumericOps
class Object
trait Matchable
class Any
class NumericOps(lhs: T)

Attributes

Inherited from:
Numeric
Supertypes
class Object
trait Matchable
class Any
class OrderingOps(lhs: T)

Attributes

Inherited from:
Ordering
Supertypes
class Object
trait Matchable
class Any

Value members

Inherited methods

def abs(x: Rational): Rational

Attributes

Inherited from:
Numeric
def compare(x: Rational, y: Rational): Int

Attributes

Inherited from:
RationalIsFractional
def div(x: Rational, y: Rational): Rational

Attributes

Inherited from:
RationalIsFractional
override def equiv(x: Rational, y: Rational): Boolean

Attributes

Definition Classes
Ordering -> PartialOrdering -> Equiv
Inherited from:
Ordering
def fromInt(x: Int): Rational

Attributes

Inherited from:
RationalIsFractional
override def gt(x: Rational, y: Rational): Boolean

Attributes

Definition Classes
Ordering -> PartialOrdering
Inherited from:
Ordering
override def gteq(x: Rational, y: Rational): Boolean

Attributes

Definition Classes
Ordering -> PartialOrdering
Inherited from:
Ordering
def isReverseOf(other: Ordering[_]): Boolean

Attributes

Inherited from:
Ordering
override def lt(x: Rational, y: Rational): Boolean

Attributes

Definition Classes
Ordering -> PartialOrdering
Inherited from:
Ordering
override def lteq(x: Rational, y: Rational): Boolean

Attributes

Definition Classes
Ordering -> PartialOrdering
Inherited from:
Ordering
def max[U <: Rational](x: U, y: U): U

Attributes

Inherited from:
Ordering
def min[U <: Rational](x: U, y: U): U

Attributes

Inherited from:
Ordering

Attributes

Inherited from:
RationalIsFractional

Attributes

Inherited from:
RationalIsFractional
def on[U](f: U => Rational): Ordering[U]

Attributes

Inherited from:
Ordering
def one: Rational

Attributes

Inherited from:
Numeric
def orElse(other: Ordering[Rational]): Ordering[Rational]

Attributes

Inherited from:
Ordering
def orElseBy[S](f: Rational => S)(implicit ord: Ordering[S]): Ordering[Rational]

Attributes

Inherited from:
Ordering
def parseString(s: String): Option[Rational]

Attributes

Inherited from:
RationalIsFractional

Attributes

Inherited from:
RationalIsFractional
override def reverse: Ordering[Rational]

Attributes

Definition Classes
Ordering -> PartialOrdering
Inherited from:
Ordering
def reversed(): Comparator[Rational]

Attributes

Inherited from:
Comparator

Attributes

Inherited from:
Numeric
def thenComparing[U <: Comparable[_ >: U <: <FromJavaObject>]](x$0: Function[_ >: Rational <: <FromJavaObject>, _ <: U]): Comparator[Rational]

Attributes

Inherited from:
Comparator
def thenComparing[U <: <FromJavaObject>](x$0: Function[_ >: Rational <: <FromJavaObject>, _ <: U], x$1: Comparator[_ >: U <: <FromJavaObject>]): Comparator[Rational]

Attributes

Inherited from:
Comparator
def thenComparing(x$0: Comparator[_ >: Rational <: <FromJavaObject>]): Comparator[Rational]

Attributes

Inherited from:
Comparator
def thenComparingDouble(x$0: ToDoubleFunction[_ >: Rational <: <FromJavaObject>]): Comparator[Rational]

Attributes

Inherited from:
Comparator
def thenComparingInt(x$0: ToIntFunction[_ >: Rational <: <FromJavaObject>]): Comparator[Rational]

Attributes

Inherited from:
Comparator
def thenComparingLong(x$0: ToLongFunction[_ >: Rational <: <FromJavaObject>]): Comparator[Rational]

Attributes

Inherited from:
Comparator

Attributes

Inherited from:
RationalIsFractional
def toDouble(x: Rational): Double

Attributes

Inherited from:
RationalIsFractional
def toFloat(x: Rational): Float

Attributes

Inherited from:
RationalIsFractional
def toInt(x: Rational): Int

Attributes

Inherited from:
RationalIsFractional
def toLong(x: Rational): Long

Attributes

Inherited from:
RationalIsFractional
def tryCompare(x: Rational, y: Rational): Some[Int]

Attributes

Inherited from:
Ordering
def zero: Rational

Attributes

Inherited from:
Numeric

Deprecated and Inherited methods

def signum(x: Rational): Int

Attributes

Deprecated
[Since version 2.13.0] use `sign` method instead
Inherited from:
Numeric

Implicits

Inherited implicits

implicit override def mkNumericOps(lhs: Rational): FractionalOps

Attributes

Definition Classes
Fractional -> Numeric
Inherited from:
Fractional
implicit def mkOrderingOps(lhs: Rational): OrderingOps

Attributes

Inherited from:
Ordering