Aspire's Library

A Place for Latest Exam wise Questions, Videos, Previous Year Papers,
Study Stuff for MCA Examinations - NIMCET

Previous Year Question (PYQs)



What is the result of the following operation defined by IEEE754
(NaN == NaN) 
1. false 
2. true 
3. error 
4.1





Solution

According to IEEE-754 floating-point standard:

  • NaN (Not a Number) is unordered.

  • Any comparison involving NaN (except !=) is false.

  • That means even NaN == NaN evaluates to false.



Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More


Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More

Ask Your Question or Put Your Review.

loading...