FloatIsReal

Value members

Concrete methods

def ceil(a: Float): Float
def floor(a: Float): Float
def round(a: Float): Float

Inherited methods

override def abs(a: Float): Float
Definition Classes
Inherited from:
FloatSigned
def compare(x: Float, y: Float): Int
Inherited from:
FloatOrder

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
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
Inherited from:
forCommutativeRing

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
Inherited from:
FloatOrder
override def gteqv(x: Float, y: Float): Boolean
Definition Classes
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
Inherited from:
Signed
Inherited from:
Signed
Inherited from:
Signed
Inherited from:
Signed
Inherited from:
Signed
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
Inherited from:
FloatOrder
override def lteqv(x: Float, y: Float): Boolean
Definition Classes
Inherited from:
FloatOrder
override def max(x: Float, y: Float): Float
Definition Classes
Inherited from:
FloatOrder
override def min(x: Float, y: Float): Float
Definition Classes
Inherited from:
FloatOrder
def minus(x: Float, y: Float): Float
Inherited from:
AdditiveGroup
def negate(x: Float): Float
Inherited from:
AdditiveGroup
override def neqv(x: Float, y: Float): Boolean
Definition Classes
Inherited from:
FloatOrder
def one: Float
Inherited from:
MultiplicativeMonoid
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
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
@nowarn("msg=deprecated")

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
Inherited from:
FloatSigned
@nowarn("msg=deprecated")

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
Inherited from:
AdditiveGroup
def times(x: Float, y: Float): Float
def tmod(a: Float, b: Float): Float
Inherited from:
FloatTruncatedDivision
Inherited from:
IsRational

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: Float): Real
Inherited from:
IsAlgebraic
def tquot(a: Float, b: Float): Float
Inherited from:
FloatTruncatedDivision
def tquotmod(x: Float, y: Float): (Float, Float)
Inherited from:
TruncatedDivision

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")
@nowarn("msg=deprecated")
override def trySum(as: IterableOnce[Float]): Option[Float]
Definition Classes
Inherited from:
AdditiveMonoid
def zero: Float
Inherited from:
AdditiveMonoid