Packages

trait Fractional[T] extends Numeric[T]

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Fractional
  2. Numeric
  3. Ordering
  4. PartialOrdering
  5. Equiv
  6. Serializable
  7. Serializable
  8. Comparator
  9. AnyRef
  10. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class FractionalOps extends Ops
  2. class Ops extends AnyRef
    Definition Classes
    Numeric

Abstract Value Members

  1. abstract def compare(x: T, y: T): Int

    Returns an integer whose sign communicates how x compares to y.

    Returns an integer whose sign communicates how x compares to y.

    The result sign has the following meaning:

    • negative if x < y
    • positive if x > y
    • zero otherwise (if x == y)
    Definition Classes
    Ordering → Comparator
  2. abstract def div(x: T, y: T): T
  3. abstract def fromInt(x: Int): T
    Definition Classes
    Numeric
  4. abstract def minus(x: T, y: T): T
    Definition Classes
    Numeric
  5. abstract def negate(x: T): T
    Definition Classes
    Numeric
  6. abstract def plus(x: T, y: T): T
    Definition Classes
    Numeric
  7. abstract def times(x: T, y: T): T
    Definition Classes
    Numeric
  8. abstract def toDouble(x: T): Double
    Definition Classes
    Numeric
  9. abstract def toFloat(x: T): Float
    Definition Classes
    Numeric
  10. abstract def toInt(x: T): Int
    Definition Classes
    Numeric
  11. abstract def toLong(x: T): Long
    Definition Classes
    Numeric

Concrete Value Members

  1. def abs(x: T): T
    Definition Classes
    Numeric
  2. def equiv(x: T, y: T): Boolean

    Return true if x == y in the ordering.

    Return true if x == y in the ordering.

    Definition Classes
    OrderingPartialOrderingEquiv
  3. def gt(x: T, y: T): Boolean

    Return true if x > y in the ordering.

    Return true if x > y in the ordering.

    Definition Classes
    OrderingPartialOrdering
  4. def gteq(x: T, y: T): Boolean

    Return true if x >= y in the ordering.

    Return true if x >= y in the ordering.

    Definition Classes
    OrderingPartialOrdering
  5. def lt(x: T, y: T): Boolean

    Return true if x < y in the ordering.

    Return true if x < y in the ordering.

    Definition Classes
    OrderingPartialOrdering
  6. def lteq(x: T, y: T): Boolean

    Return true if x <= y in the ordering.

    Return true if x <= y in the ordering.

    Definition Classes
    OrderingPartialOrdering
  7. def max(x: T, y: T): T

    Return x if x >= y, otherwise y.

    Return x if x >= y, otherwise y.

    Definition Classes
    Ordering
  8. def min(x: T, y: T): T

    Return x if x <= y, otherwise y.

    Return x if x <= y, otherwise y.

    Definition Classes
    Ordering
  9. implicit def mkNumericOps(lhs: T): FractionalOps
    Definition Classes
    FractionalNumeric
  10. implicit def mkOrderingOps(lhs: T): Fractional.Ops

    This implicit method augments T with the comparison operators defined in scala.math.Ordering.Ops.

    This implicit method augments T with the comparison operators defined in scala.math.Ordering.Ops.

    Definition Classes
    Ordering
  11. def on[U](f: (U) ⇒ T): Ordering[U]

    Given f, a function from U into T, creates an Ordering[U] whose compare function is equivalent to:

    Given f, a function from U into T, creates an Ordering[U] whose compare function is equivalent to:

    def compare(x:U, y:U) = Ordering[T].compare(f(x), f(y))
    Definition Classes
    Ordering
  12. def one: T
    Definition Classes
    Numeric
  13. def reverse: Ordering[T]

    Return the opposite ordering of this one.

    Return the opposite ordering of this one.

    Definition Classes
    OrderingPartialOrdering
  14. def reversed(): Comparator[T]
    Definition Classes
    Comparator
  15. def signum(x: T): Int
    Definition Classes
    Numeric
  16. def thenComparing[U <: Comparable[_ >: U]](arg0: java.util.function.Function[_ >: T, _ <: U]): Comparator[T]
    Definition Classes
    Comparator
  17. def thenComparing[U](arg0: java.util.function.Function[_ >: T, _ <: U], arg1: Comparator[_ >: U]): Comparator[T]
    Definition Classes
    Comparator
  18. def thenComparing(arg0: Comparator[_ >: T]): Comparator[T]
    Definition Classes
    Comparator
  19. def thenComparingDouble(arg0: ToDoubleFunction[_ >: T]): Comparator[T]
    Definition Classes
    Comparator
  20. def thenComparingInt(arg0: ToIntFunction[_ >: T]): Comparator[T]
    Definition Classes
    Comparator
  21. def thenComparingLong(arg0: ToLongFunction[_ >: T]): Comparator[T]
    Definition Classes
    Comparator
  22. def tryCompare(x: T, y: T): Some[Int]

    Returns whether a comparison between x and y is defined, and if so the result of compare(x, y).

    Returns whether a comparison between x and y is defined, and if so the result of compare(x, y).

    Definition Classes
    OrderingPartialOrdering
  23. def zero: T
    Definition Classes
    Numeric