Double
Equiv
s for Double
s.
Attributes
- Source
- Equiv.scala
- Graph
-
- Supertypes
- Self type
-
Double.type
Members list
Type members
Classlikes
Attributes
- Companion
- trait
- Source
- Equiv.scala
- Supertypes
- Self type
-
IeeeEquiv.type
An equivalence for Double
s which is consistent with IEEE specifications.
An equivalence for Double
s which is consistent with IEEE specifications.
Because the behaviour of Double
s 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 Double
: 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.
Attributes
- See also
- Companion
- object
- Source
- Equiv.scala
- Supertypes
- Known subtypes
-
object IeeeEquiv.type
Attributes
- Companion
- trait
- Source
- Equiv.scala
- Supertypes
- Self type
-
StrictEquiv.type
An equivalence for Double
s which is reflexive (treats all NaN
s as equivalent), and treats -0.0
and 0.0
as not equivalent; it behaves the same as java.lang.Double.compare.
An equivalence for Double
s which is reflexive (treats all NaN
s as equivalent), and treats -0.0
and 0.0
as not equivalent; it behaves the same as java.lang.Double.compare.
Because the behaviour of Double
s 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 Double
: 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 collections.
Attributes
- See also
- Companion
- object
- Source
- Equiv.scala
- Supertypes
- Known subtypes
-
object DeprecatedDoubleEquiv.typeobject StrictEquiv.type