IeeeEquiv (original) (raw)
scala.math.Equiv.Double.IeeeEquiv
See theIeeeEquiv companion object
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
Source
Graph
Supertypes
Known subtypes
Members list
Returns true
iff x
is equivalent to y
.
Returns true
iff x
is equivalent to y
.
Attributes
Source
In this article