c - Comparing nan (greater and greater equal) -


i know if(nan != nan) -> true, quite logical (sqrt(-1) has unequal 0/0).

the following line of code logical:

if(nan > 90.0f) -> false 

...nan not number, cannot greater or smaller number.

however, not understand why if(nan >= 90.0f) -> true ?!?!

i'm using tasking c166 compiler.

this appear compiler bug[1]. should report tasking.

[1] can see (http://www.tasking.com/products/c166/), tasking not claim conformance ieee-754, behavior may not contrary published documentation. is, however, contrary common sense , taste.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -