W3C home > Mailing lists > Public > public-qt-comments@w3.org > March 2014

[Bug 25084] New: cbcl-avg-010 can return NaN

From: <bugzilla@jessica.w3.org>
Date: Mon, 17 Mar 2014 18:16:23 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-25084-523@http.www.w3.org/Bugs/Public/>

            Bug ID: 25084
           Summary: cbcl-avg-010 can return NaN
           Product: XPath / XQuery / XSLT
           Version: Last Call drafts
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XQuery 3 & XPath 3 Test Suite
          Assignee: oneil@saxonica.com
          Reporter: mike@saxonica.com
        QA Contact: public-qt-comments@w3.org

Tes cbcl-avg-010 is:

avg((xs:double("NaN"), current-date() - xs:date("1997-01-01") ))

I believe that under "Errors and Optimization", NaN is a legitimate result.
Once an xs:double NaN value has been found in the input sequence, the only
possible outcomes are NaN or an error, so the processor is entitled to take an
early bath and return NaN.

You are receiving this mail because:
You are the QA Contact for the bug.
Received on Monday, 17 March 2014 18:16:25 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:46 UTC