python nan != nan

前端 未结 3 1181
夕颜
夕颜 2021-01-03 02:08
Python 2.7.3 (default, Aug  1 2012, 05:14:39) 
[GCC 4.6.3] on linux2
Type \"help\", \"copyright\", \"credits\" or \"license\" for more information.
>>> x =          


        
3条回答
  •  说谎
    说谎 (楼主)
    2021-01-03 02:32

    The machine code that implements floating point operations handles the result of operations with NaN. For the x86 processor series this is usually achieved using x87 coprocessor instructions, although for earlier x86 processors where an x87 coprocessor was not always present a compiler usually provided emulation code.

提交回复
热议问题