Open
Description
For OrderedFloat
:
NaN is sorted as greater than all other values and equal to itself, in contradiction with the IEEE standard.
IEEE standard requires different NaNs to be not equal, positive NaN to be greater than +∞ and negative NaN to be less than -∞. It also requires -0 to be less than +0. Why non-conformant behavior was chosen? Wouldn't it make more sense to implement total order as defined in standard instead?
This Stack Overflow answer is presumably providing a fast way to implement IEEE total order comparison.
Metadata
Metadata
Assignees
Labels
No labels