Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
houghtonap
Frequent Visitor

M-Query NaN and IEEE 754 Discrepancy

My limited understanding of IEEE 754 and NaN is that it is not less than, equal to, or greater than any other number. So I'm a little confused why

 

{ #nan < 0, #nan = 0, #nan > 0 }

 

returns

 

{ true, false, false }

 

Can someone point me to the documentation that describes this behavior? 

I have read the Power Query Language specification, Relational Operators section and it indicates:

  • If either operand is #nan, the result is false for all relational operators.

Is there another place in the documentation that overrides this statement?

1 REPLY 1
lbendlin
Super User
Super User

This might be a good question for Ben Gribaudo?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors