Project

Profile

Help

Bug #2923

closed

Incorrect comparison for xs:numeric and NaN

Added by John Lumley about 8 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
2016-09-05
Due date:
% Done:

100%

Estimated time:
Applies to JS Branch:
0.9
Fix Committed on JS Branch:
0.9
Fixed in JS Release:
SEF Generated with:
Platforms:
Company:
-
Contact person:
-
Additional contact persons:
-

Description

Comparer.NaNable() is returning numeric ordering results (0|-1|+1) when comparing xs:numerics one or more of which is NaN. According to the spec the result of such comparisons should always be false, no matter what the comparison operator. Will need some trapping at a higher level in Expr.vc or Expr.gc

Illustrated by (xs:double("NaN") lt 1)

Please register to edit this issue

Also available in: Atom PDF Tracking page