W3C home > Mailing lists > Public > public-qt-comments@w3.org > August 2006

[Bug 3610] Test fn-avgflt2args-1 answers are incorrect

From: <bugzilla@wiggum.w3.org>
Date: Tue, 22 Aug 2006 17:18:00 +0000
To: public-qt-comments@w3.org
Message-Id: <E1GFZt2-0001Ei-9B@wiggum.w3.org>


andrew.eisenberg@us.ibm.com changed:

           What    |Removed                     |Added
         AssignedTo|andrew.eisenberg@us.ibm.com |carmelo@nist.gov

------- Comment #1 from andrew.eisenberg@us.ibm.com  2006-08-22 17:17 -------
While it might be desirable to be able to use greater precision in the
calaculation of fn:avg, I believe that the F&O specification does not allow us
this flexibility. 

Section 15.4.2, fn:avg, of F&O says in part:

"Otherwise, returns the average of the values computed as sum($arg) div

Section 15.4.5, fn:sum, requires that a sum of xs:float values returns
xs:float, saying in part:

"For numeric values, the numeric promotion rules defined in 6.2 Operators on
Numeric Values are used to promote all values to a single common type. The sum
of a sequence of integers will therefore be an integer, while the sum of a
numeric sequence that includes at least one xs:double will be an xs:double."

I believe that your comment is a comment on F&O more than it is on the test
suite itself. I encourage you to submit it on this spec (instructions in the
front matter of F&O). The XML Query and XSL WGs are meeting this week and will
consider any comments that you submit.
Received on Tuesday, 22 August 2006 17:18:25 UTC

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