BigDecimalIsReal

trait forCommutativeRing[BigDecimal]
trait CommutativeRing[BigDecimal]
trait CommutativeRng[BigDecimal]
trait CommutativeRig[BigDecimal]
trait MultiplicativeCommutativeMonoid[BigDecimal]
trait CommutativeSemiring[BigDecimal]
trait MultiplicativeCommutativeSemigroup[BigDecimal]
trait Ring[BigDecimal]
trait Rng[BigDecimal]
trait Rig[BigDecimal]
trait MultiplicativeMonoid[BigDecimal]
trait Semiring[BigDecimal]
trait MultiplicativeSemigroup[BigDecimal]
trait forAdditiveCommutativeGroup[BigDecimal]
trait AdditiveCommutativeGroup[BigDecimal]
trait AdditiveGroup[BigDecimal]
trait forAdditiveCommutativeMonoid[BigDecimal]
trait AdditiveCommutativeMonoid[BigDecimal]
trait AdditiveCommutativeSemigroup[BigDecimal]
trait AdditiveMonoid[BigDecimal]
trait AdditiveSemigroup[BigDecimal]
trait TruncatedDivision[BigDecimal]
trait IsRational[BigDecimal]
trait IsAlgebraic[BigDecimal]
trait IsReal[BigDecimal]
trait Signed[BigDecimal]
trait Order[BigDecimal]
trait PartialOrder[BigDecimal]
trait Eq[BigDecimal]
trait Serializable
class Object
trait Matchable
class Any

Value members

Concrete methods

def ceil(a: BigDecimal): BigDecimal
def floor(a: BigDecimal): BigDecimal
def isWhole(a: BigDecimal): Boolean
def round(a: BigDecimal): BigDecimal
def toDouble(x: BigDecimal): Double
def toRational(a: BigDecimal): Rational

Inherited methods

override
def abs(a: BigDecimal): BigDecimal
Definition Classes
Inherited from
BigDecimalSigned
override
def additive: CommutativeGroup[BigDecimal]
Definition Classes
AdditiveCommutativeGroup -> AdditiveCommutativeMonoid -> AdditiveCommutativeSemigroup -> AdditiveGroup -> AdditiveMonoid -> AdditiveSemigroup
Inherited from
AdditiveCommutativeGroup
final override
def additiveCommutativeMonoid: AdditiveCommutativeMonoid[BigDecimal]
Definition Classes
forAdditiveCommutativeMonoid -> Signed
Inherited from
forAdditiveCommutativeMonoid
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
def fmod(x: BigDecimal, y: BigDecimal): BigDecimal
Inherited from
forCommutativeRing
def fquot(x: BigDecimal, y: BigDecimal): BigDecimal
Inherited from
forCommutativeRing
override
def fquotmod(x: BigDecimal, y: BigDecimal): (BigDecimal, BigDecimal)
Definition Classes
forCommutativeRing -> TruncatedDivision
Inherited from
forCommutativeRing
def fromBigInt(n: BigInt): BigDecimal

Convert the given BigInt to an instance of A.

Convert the given BigInt to an instance of A.

This is equivalent to n repeated summations of this ring's one, or -n summations of -one if n is negative.

Most type class instances should consider overriding this method for performance reasons.

Inherited from
Ring
def fromInt(n: Int): BigDecimal

Convert the given integer to an instance of A.

Convert the given integer to an instance of A.

Defined to be equivalent to sumN(one, n).

That is, n repeated summations of this ring's one, or -n summations of -one if n is negative.

Most type class instances should consider overriding this method for performance reasons.

Inherited from
Ring
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 isOne(a: BigDecimal)(implicit ev: Eq[BigDecimal]): Boolean

Tests if a is one.

Tests if a is one.

Inherited from
MultiplicativeMonoid
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
def isZero(a: BigDecimal)(implicit ev: Eq[BigDecimal]): Boolean

Tests if a is zero.

Tests if a is zero.

Inherited from
AdditiveMonoid
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
def minus(x: BigDecimal, y: BigDecimal): BigDecimal
Inherited from
AdditiveGroup
override
def multiplicative: CommutativeMonoid[BigDecimal]
Definition Classes
MultiplicativeCommutativeMonoid -> MultiplicativeCommutativeSemigroup -> MultiplicativeMonoid -> MultiplicativeSemigroup
Inherited from
MultiplicativeCommutativeMonoid
def negate(x: BigDecimal): BigDecimal
Inherited from
AdditiveGroup
override
def neqv(x: BigDecimal, y: BigDecimal): Boolean
Definition Classes
BigDecimalOrder -> Order -> Eq
Inherited from
BigDecimalOrder
def one: BigDecimal
Inherited from
MultiplicativeMonoid
def order: Order[BigDecimal]
Inherited from
BigDecimalSigned
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 plus(x: BigDecimal, y: BigDecimal): BigDecimal
Inherited from
AdditiveSemigroup
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
override
def pow(a: BigDecimal, n: Int): BigDecimal
Definition Classes
MultiplicativeMonoid -> MultiplicativeSemigroup
Inherited from
MultiplicativeMonoid
@nowarn("msg=deprecated")
def product(as: IterableOnce[BigDecimal]): BigDecimal

Given a sequence of as, compute the product.

Given a sequence of as, compute the product.

Inherited from
MultiplicativeMonoid
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
override
def signum(a: BigDecimal): Int
Definition Classes
Inherited from
BigDecimalSigned
@nowarn("msg=deprecated")
def sum(as: IterableOnce[BigDecimal]): BigDecimal

Given a sequence of as, compute the sum.

Given a sequence of as, compute the sum.

Inherited from
AdditiveMonoid
override
def sumN(a: BigDecimal, n: Int): BigDecimal
Definition Classes
AdditiveGroup -> AdditiveMonoid -> AdditiveSemigroup
Inherited from
AdditiveGroup
def times(x: BigDecimal, y: BigDecimal): BigDecimal
Inherited from
MultiplicativeSemigroup
def tmod(a: BigDecimal, b: BigDecimal): BigDecimal
def toAlgebraic(a: BigDecimal): Algebraic
Inherited from
IsRational
def toBigIntOpt(a: BigDecimal): Opt[BigInt]
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 toReal(a: BigDecimal): Real
Inherited from
IsAlgebraic
def tquot(a: BigDecimal, b: BigDecimal): BigDecimal
override
def tquotmod(a: BigDecimal, b: BigDecimal): (BigDecimal, BigDecimal)
Definition Classes
BigDecimalTruncatedDivision -> TruncatedDivision
Inherited from
BigDecimalTruncatedDivision
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
@nowarn("msg=deprecated")
override
def tryProduct(as: IterableOnce[BigDecimal]): Option[BigDecimal]
Definition Classes
MultiplicativeMonoid -> MultiplicativeSemigroup
Inherited from
MultiplicativeMonoid
@nowarn("msg=deprecated")
override
def trySum(as: IterableOnce[BigDecimal]): Option[BigDecimal]
Definition Classes
AdditiveMonoid -> AdditiveSemigroup
Inherited from
AdditiveMonoid
def zero: BigDecimal
Inherited from
AdditiveMonoid