I used the following syntax
if (uf > 0x7f800000)
But this is not working. Any help will be appreciated!
I used the following syntax
if (uf > 0x7f800000)
But this is not working. Any help will be appreciated!
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.