Aspire Faculty ID #12124 · Topic: CUET 2025 · Just now
CUET 2025

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.

Previous 10 Questions — CUET 2025

Nearest first

Next 10 Questions — CUET 2025

Ascending by ID
Ask Your Question or Put Your Review.

loading...