QPFloat icon indicating copy to clipboard operation
QPFloat copied to clipboard

Make NaN != NaN

Open coder0xff opened this issue 6 years ago • 3 comments

coder0xff avatar Jun 20 '19 22:06 coder0xff

Not desirable because it would impact performance on all equality checks, because at least a check of the biasedexponent is required.

ProphetLamb avatar Sep 20 '19 07:09 ProphetLamb

Not desirable because it would impact performance on all equality checks, because at least a check of the biasedexponent is required.

It is standardized IEEE 754 behavior. It is not only desirable, but mandatory for compliance, if perfect compliance is the goal.

However, it could be an opportunity to fix mistakes of the committee, if that is desired.

Edit: I realize I poked a dead issue, but I'm going to leave this here for posterity and informational purposes

Willt125 avatar Feb 19 '21 16:02 Willt125

It's an open issue, so I'm glad you commented. I didn't make the change because it seemed to have no support until now.

coder0xff avatar Feb 19 '21 19:02 coder0xff