An ordering for
Floats which is consistent with IEEE specifications
gtare consistent with primitive comparison operations for
Floats, and return
falsewhen called with
maxare consistent with
math.max, and return
NaNwhen called with
NaNas either argument.
comparebehaves the same as java.lang.Float.compare.
Because the behavior of
Floats specified by IEEE is
not consistent with a total ordering when dealing with
NaN, there are two orderings defined for
TotalOrdering, which is consistent with a total
IeeeOrdering, which is consistent
as much as possible with IEEE spec and floating point
operations defined in scala.math.
This ordering may be preferable for numeric contexts.
Creates an Ordering[T] whose compare function returns the
result of this Ordering's compare function, if it is non-zero,
or else the result of
others compare function.
Given f, a function from T into S, creates an Ordering[T] whose compare function returns the result of this Ordering's compare function, if it is non-zero, or else a result equivalent to:
This function is equivalent to passing the result of