News for hackers. Stuff that matters.
Re:There Are Only Four Billion Floats, So Test Them All (2014) by brucedawson on Thursday September 14, 2017 @07:11PM (#15253244)
I wouldn't want to write the test that way because it seems very complex. The other way I'd be tempted to write it would be to compare the bit patterns and treat mismatched bit patterns as a failure unless both numbers are NaN.

To some extent it comes down to personal taste and how much knowledge of FP you want embedded in the test.

There are no comments on this comment yet.