3

I used the following syntax

if (uf > 0x7f800000)

But this is not working. Any help will be appreciated!

1 Answers1

0

NaNs always result in false when compared using ==, > or any other relational operator. And your integer 0x7f800000 will be converted to the common type of it and uf.

You should use the standard isnan() function instead.

Toby Speight
  • 27,591
  • 48
  • 66
  • 103