DoubleSigned

trait Order[Double]
trait Eq[Double]
trait Signed[Double]
class Object
trait Matchable
class Any

Value members

Concrete methods

override def abs(a: Double): Double
Definition Classes
override def signum(a: Double): Int
Definition Classes

Inherited methods

def compare(x: Double, y: Double): Int
Inherited from:
DoubleOrder

Like compare, but returns a cats.kernel.Comparison instead of an Int. Has the benefit of being able to pattern match on, but not as performant.

Like compare, but returns a cats.kernel.Comparison instead of an Int. Has the benefit of being able to pattern match on, but not as performant.

Inherited from:
Order
override def eqv(x: Double, y: Double): Boolean
Definition Classes
Inherited from:
DoubleOrder
override def gt(x: Double, y: Double): Boolean
Definition Classes
Inherited from:
DoubleOrder
override def gteqv(x: Double, y: Double): Boolean
Definition Classes
Inherited from:
DoubleOrder
Inherited from:
Signed
Inherited from:
Signed
Inherited from:
Signed
Inherited from:
Signed
Inherited from:
Signed
Inherited from:
Signed
override def lt(x: Double, y: Double): Boolean
Definition Classes
Inherited from:
DoubleOrder
override def lteqv(x: Double, y: Double): Boolean
Definition Classes
Inherited from:
DoubleOrder
override def max(x: Double, y: Double): Double
Definition Classes
Inherited from:
DoubleOrder
override def min(x: Double, y: Double): Double
Definition Classes
Inherited from:
DoubleOrder
override def neqv(x: Double, y: Double): Boolean
Definition Classes
Inherited from:
DoubleOrder
Inherited from:
Order

Like partialCompare, but returns a cats.kernel.Comparison instead of an Double. Has the benefit of being able to pattern match on, but not as performant.

Like partialCompare, but returns a cats.kernel.Comparison instead of an Double. Has the benefit of being able to pattern match on, but not as performant.

Inherited from:
PartialOrder

Returns Some(x) if x >= y, Some(y) if x < y, otherwise None.

Returns Some(x) if x >= y, Some(y) if x < y, otherwise None.

Inherited from:
PartialOrder

Returns Some(x) if x <= y, Some(y) if x > y, otherwise None.

Returns Some(x) if x <= y, Some(y) if x > y, otherwise None.

Inherited from:
PartialOrder
def sign(a: Double): Sign

Returns Zero if a is 0, Positive if a is positive, and Negative is a is negative.

Returns Zero if a is 0, Positive if a is positive, and Negative is a is negative.

Inherited from:
Signed

Convert a Order[A] to a scala.math.Ordering[A] instance.

Convert a Order[A] to a scala.math.Ordering[A] instance.

Inherited from:
Order

Result of comparing x with y. Returns None if operands are not comparable. If operands are comparable, returns Some[Int] where the Int sign is:

Result of comparing x with y. Returns None if operands are not comparable. If operands are comparable, returns Some[Int] where the Int sign is:

  • negative iff x < y
  • zero iff x = y
  • positive iff x > y
Inherited from:
PartialOrder