This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
sumflt3args-6 for the sum: fn:sum((xs:float("-3.4028235E38"), xs:float("-3.4028235E38"), xs:float("3.4028235E38"))) Why wouldn't the result be -3.4028235E38? which is the sum of the three floats, and is within the range of floats. Note: that the F&O document specifies the semantics through recursive function which will sum the last two floats first, but I am not sure whether we really impose this on implementations. - Jerome
I believe that both -INF and -3.4028235E38 are supported by F&O. The second paragraph of 15.4.5 fn:sum contains the following: "The items in the resulting sequence may be reordered in an arbitrary order. The resulting sequence is referred to below as the converted sequence." The recursive function that you mention operates on the converted sequence.
So I assume both results should be allowed by the test suite. Is that right? - Jerome
Jerome: You are correct. Added extra expected results and submitted them. Please close the bug when able to verify. Thanks, Carmelo
This seems to be still wrong in 0.8.6. The catalog indicates both -INF and an expected error FOAR0002, but still not -3.4028235E38 as a possible result. - Jerome
Jerome: Sorry, I meant to add the extra file as well. Generated another expected outcome to include -3.4028235E38. Please close the bug if in agreement and when able to verify. Thanks, Carmelo