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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors