trait StrictEquiv extends Equiv[Float]
An equivalence for
Floats which is reflexive (treats all
as equivalent), and treats
0.0 as not equivalent; it
behaves the same as java.lang.Float.compare.
Because the behaviour of
Floats specified by IEEE is
not consistent with behaviors required of an equivalence
NaN (it is not reflexive), there are two
equivalences defined for
is reflexive, and
IeeeEquiv, which is consistent
with IEEE spec and floating point operations defined in
This equivalence may be preferable for collections.
- See also: