Click here to Skip to main content
15,886,873 members
Articles / Programming Languages / C

C99 and C++11: Use isnan to test for NaN

Rate me:
Please Sign up or sign in to vote.
4.80/5 (7 votes)
12 Apr 2016CPOL2 min read 28.6K   107   12  
Never test for NaN by comparing it with NaN literal

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
Singapore Singapore
Shao Voon is from Singapore. His interest lies primarily in computer graphics, software optimization, concurrency, security, and Agile methodologies.

In recent years, he shifted focus to software safety research. His hobby is writing a free C++ DirectX photo slideshow application which can be viewed here.

Comments and Discussions