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

http://www.w3.org/Bugs/Public/show_bug.cgi?id=3610


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
count($arg)."

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