BigDecimalSigned

trait BigDecimalSigned extends Signed[BigDecimal] with BigDecimalOrder
trait Signed[BigDecimal]
trait Order[BigDecimal]
trait PartialOrder[BigDecimal]
trait Eq[BigDecimal]
trait Serializable
class Object
trait Matchable
class Any

Value members

Concrete methods

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

Inherited methods

def compare(x: BigDecimal, y: BigDecimal): Int
Inherited from
BigDecimalOrder
def comparison(x: BigDecimal, y: BigDecimal): Comparison

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: BigDecimal, y: BigDecimal): Boolean
Definition Classes
BigDecimalOrder -> Order -> PartialOrder -> Eq
Inherited from
BigDecimalOrder
override
def gt(x: BigDecimal, y: BigDecimal): Boolean
Definition Classes
BigDecimalOrder -> Order -> PartialOrder
Inherited from
BigDecimalOrder
override
def gteqv(x: BigDecimal, y: BigDecimal): Boolean
Definition Classes
BigDecimalOrder -> Order -> PartialOrder
Inherited from
BigDecimalOrder
def isSignNegative(a: BigDecimal): Boolean
Inherited from
Signed
def isSignNonNegative(a: BigDecimal): Boolean
Inherited from
Signed
def isSignNonPositive(a: BigDecimal): Boolean
Inherited from
Signed
def isSignNonZero(a: BigDecimal): Boolean
Inherited from
Signed
def isSignPositive(a: BigDecimal): Boolean
Inherited from
Signed
def isSignZero(a: BigDecimal): Boolean
Inherited from
Signed
override
def lt(x: BigDecimal, y: BigDecimal): Boolean
Definition Classes
BigDecimalOrder -> Order -> PartialOrder
Inherited from
BigDecimalOrder
override
def lteqv(x: BigDecimal, y: BigDecimal): Boolean
Definition Classes
BigDecimalOrder -> Order -> PartialOrder
Inherited from
BigDecimalOrder
override
def max(x: BigDecimal, y: BigDecimal): BigDecimal
Definition Classes
Inherited from
BigDecimalOrder
override
def min(x: BigDecimal, y: BigDecimal): BigDecimal
Definition Classes
Inherited from
BigDecimalOrder
override
def neqv(x: BigDecimal, y: BigDecimal): Boolean
Definition Classes
BigDecimalOrder -> Order -> Eq
Inherited from
BigDecimalOrder
def partialCompare(x: BigDecimal, y: BigDecimal): Double
Inherited from
Order
def partialComparison(x: BigDecimal, y: BigDecimal): Option[Comparison]

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
def pmax(x: BigDecimal, y: BigDecimal): Option[BigDecimal]

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 pmin(x: BigDecimal, y: BigDecimal): Option[BigDecimal]

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: BigDecimal): 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
def toOrdering: Ordering[BigDecimal]

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
def tryCompare(x: BigDecimal, y: BigDecimal): Option[Int]

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