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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -