2 ms·
There shouldn't be any problems when using the total order from the standard as it defines -0 < 0 to be true. I don't see how there's a problem with a range co
by charcircuit 5y ago
There shouldn't be any problems when using the total order from the standard as it defines -0 < 0 to be true.
I don't see how there's a problem with a range containing NaN. It's no weirder than a range containing infinity.
- sharikous 5y agoIt defines also -0 == 0 and NaN != NaN. That's alone makes it rather weird
- colejohnson66 5y agoWhy is defining negative zero equal to positive zero confusing? Because -0 < 0? That's to ensure there's total ordering - if they're equal (but not "identical"), you need some definition on ordering them. I can understand the confusion many have with NaN, but the idea is that it's not a number, so it's not equal to anything in a number-like type.
- jjgreen 5y agohypot(Inf, NaN) == Inf suggests otherwise.
- dnautics 5y agoRight. I guess you didn't see that those two clopen intervals are mathematically identical, even though they are representationally unequal.