Packages

trait IeeeEquiv extends Equiv[Float]

An equivalence for Floats which is consistent with IEEE specifications.

Because the behaviour of Floats specified by IEEE is not consistent with behaviors required of an equivalence relation for NaN (it is not reflexive), there are two equivalences defined for Float: StrictEquiv, which is reflexive, and IeeeEquiv, which is consistent with IEEE spec and floating point operations defined in scala.math.

This equivalence may be preferable for numeric contexts.

Source
Equiv.scala
See also

StrictEquiv

Known Subclasses
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. IeeeEquiv
  2. Equiv
  3. Serializable
  4. AnyRef
  5. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def equiv(x: Float, y: Float): Boolean

    Returns true iff x is equivalent to y.

    Returns true iff x is equivalent to y.

    Definition Classes
    IeeeEquivEquiv