Project

Profile

Help

Bug #2923

Incorrect comparison for xs:numeric and NaN

Added by John Lumley over 1 year ago. Updated 7 months ago.

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

100%

Applies to JS Branch:
0.9
Fix Committed on JS Branch:
0.9
Fixed in JS Release:
SEF Generated with:
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)

History

#1 Updated by John Lumley about 1 year ago

  • Status changed from New to Resolved

Corrections applied in Expr.vc and Compare.gc on the Saxon-JS code branch.

#2 Updated by Debbie Lockett about 1 year ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100
  • Found in version set to 0.9
  • Fixed in version set to 0.9.1

Bug fix applied in the Saxon-JS 0.9.1 beta release.

#3 Updated by Community Admin 7 months ago

  • Fixed in JS Release set to Saxon-JS 0.9.1
  • Applies to JS Branch 0.9 added
  • Fix Committed on JS Branch 0.9 added

#4 Updated by Debbie Lockett 7 months ago

  • Applies to branch deleted (9.8)

Please register to edit this issue

Also available in: Atom PDF Tracking page