FloatTruncatedDivision

trait FloatTruncatedDivision extends forCommutativeRing[Float] with FloatSigned
trait Order[Float]
trait PartialOrder[Float]
trait Eq[Float]
trait forCommutativeRing[Float]
trait CommutativeRing[Float]
trait CommutativeRng[Float]
trait CommutativeRig[Float]
trait MultiplicativeCommutativeMonoid[Float]
trait CommutativeSemiring[Float]
trait MultiplicativeCommutativeSemigroup[Float]
trait Ring[Float]
trait Rng[Float]
trait Rig[Float]
trait MultiplicativeMonoid[Float]
trait Semiring[Float]
trait MultiplicativeSemigroup[Float]
trait forAdditiveCommutativeGroup[Float]
trait AdditiveCommutativeGroup[Float]
trait AdditiveGroup[Float]
trait forAdditiveCommutativeMonoid[Float]
trait AdditiveCommutativeMonoid[Float]
trait AdditiveCommutativeSemigroup[Float]
trait AdditiveMonoid[Float]
trait AdditiveSemigroup[Float]
trait Serializable
trait TruncatedDivision[Float]
trait Signed[Float]
class Object
trait Matchable
class Any

Value members

Concrete methods

def order: Order[Float]
def tmod(a: Float, b: Float): Float
def toBigIntOpt(a: Float): Opt[BigInt]
def tquot(a: Float, b: Float): Float

Inherited methods

override
def abs(a: Float): Float
Definition Classes
FloatSigned -> Signed
Inherited from
FloatSigned
override
def additive: CommutativeGroup[Float]
Definition Classes
AdditiveCommutativeGroup -> AdditiveCommutativeMonoid -> AdditiveCommutativeSemigroup -> AdditiveGroup -> AdditiveMonoid -> AdditiveSemigroup
Inherited from
AdditiveCommutativeGroup
final override
def additiveCommutativeMonoid: AdditiveCommutativeMonoid[Float]
Definition Classes
forAdditiveCommutativeMonoid -> Signed
Inherited from
forAdditiveCommutativeMonoid
def compare(x: Float, y: Float): Int
Inherited from
FloatOrder
def comparison(x: Float, y: Float): 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: Float, y: Float): Boolean
Definition Classes
FloatOrder -> Order -> PartialOrder -> Eq
Inherited from
FloatOrder
def fmod(x: Float, y: Float): Float
Inherited from
forCommutativeRing
def fquot(x: Float, y: Float): Float
Inherited from
forCommutativeRing
override
def fquotmod(x: Float, y: Float): (Float, Float)
Definition Classes
forCommutativeRing -> TruncatedDivision
Inherited from
forCommutativeRing
def fromBigInt(n: BigInt): Float

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): Float

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: Float, y: Float): Boolean
Definition Classes
FloatOrder -> Order -> PartialOrder
Inherited from
FloatOrder
override
def gteqv(x: Float, y: Float): Boolean
Definition Classes
FloatOrder -> Order -> PartialOrder
Inherited from
FloatOrder
def isOne(a: Float)(implicit ev: Eq[Float]): Boolean

Tests if a is one.

Tests if a is one.

Inherited from
MultiplicativeMonoid
def isSignNegative(a: Float): Boolean
Inherited from
Signed
def isSignNonNegative(a: Float): Boolean
Inherited from
Signed
def isSignNonPositive(a: Float): Boolean
Inherited from
Signed
def isSignNonZero(a: Float): Boolean
Inherited from
Signed
def isSignPositive(a: Float): Boolean
Inherited from
Signed
def isSignZero(a: Float): Boolean
Inherited from
Signed
def isZero(a: Float)(implicit ev: Eq[Float]): Boolean

Tests if a is zero.

Tests if a is zero.

Inherited from
AdditiveMonoid
override
def lt(x: Float, y: Float): Boolean
Definition Classes
FloatOrder -> Order -> PartialOrder
Inherited from
FloatOrder
override
def lteqv(x: Float, y: Float): Boolean
Definition Classes
FloatOrder -> Order -> PartialOrder
Inherited from
FloatOrder
override
def max(x: Float, y: Float): Float
Definition Classes
FloatOrder -> Order
Inherited from
FloatOrder
override
def min(x: Float, y: Float): Float
Definition Classes
FloatOrder -> Order
Inherited from
FloatOrder
def minus(x: Float, y: Float): Float
Inherited from
AdditiveGroup
override
def multiplicative: CommutativeMonoid[Float]
Definition Classes
MultiplicativeCommutativeMonoid -> MultiplicativeCommutativeSemigroup -> MultiplicativeMonoid -> MultiplicativeSemigroup
Inherited from
MultiplicativeCommutativeMonoid
def negate(x: Float): Float
Inherited from
AdditiveGroup
override
def neqv(x: Float, y: Float): Boolean
Definition Classes
FloatOrder -> Order -> Eq
Inherited from
FloatOrder
def one: Float
Inherited from
MultiplicativeMonoid
def partialCompare(x: Float, y: Float): Double
Inherited from
Order
def partialComparison(x: Float, y: Float): 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: Float, y: Float): Float
Inherited from
AdditiveSemigroup
def pmax(x: Float, y: Float): Option[Float]

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: Float, y: Float): Option[Float]

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: Float, n: Int): Float
Definition Classes
MultiplicativeMonoid -> MultiplicativeSemigroup
Inherited from
MultiplicativeMonoid
@nowarn("msg=deprecated")
def product(as: IterableOnce[Float]): Float

Given a sequence of as, compute the product.

Given a sequence of as, compute the product.

Inherited from
MultiplicativeMonoid
def sign(a: Float): 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: Float): Int
Definition Classes
FloatSigned -> Signed
Inherited from
FloatSigned
@nowarn("msg=deprecated")
def sum(as: IterableOnce[Float]): Float

Given a sequence of as, compute the sum.

Given a sequence of as, compute the sum.

Inherited from
AdditiveMonoid
override
def sumN(a: Float, n: Int): Float
Definition Classes
AdditiveGroup -> AdditiveMonoid -> AdditiveSemigroup
Inherited from
AdditiveGroup
def times(x: Float, y: Float): Float
Inherited from
MultiplicativeSemigroup
def toOrdering: Ordering[Float]

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 tquotmod(x: Float, y: Float): (Float, Float)
Inherited from
TruncatedDivision
def tryCompare(x: Float, y: Float): 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[Float]): Option[Float]
Definition Classes
MultiplicativeMonoid -> MultiplicativeSemigroup
Inherited from
MultiplicativeMonoid
@nowarn("msg=deprecated")
override
def trySum(as: IterableOnce[Float]): Option[Float]
Definition Classes
AdditiveMonoid -> AdditiveSemigroup
Inherited from
AdditiveMonoid
def zero: Float
Inherited from
AdditiveMonoid