This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
According to section 6.2 of F&O (http://www.w3.org/TR/xquery- operators/#op.numeric), implementations have several options for handling overflow for operations on xs:float and xs:double: a) Raise err:FOAR0002 b) Return INF or -INF c) Return the largest (pos or neg) finite number Similar options apply to underflow behavior. The following XQTS tests should allow multiple expected results: fn-avgflt2args-1 fn-sumdbl3args-1 fn-sumdbl3args-1 fn-sumflt3args-1 fn-sumflt3args-6 CastAs169 CastAs204
More tests failing due to same reason: CastAs[182-198]
Naresh: Does your implementation raises an error? Thanks, Carmelo
Naresh: I added the extra error code for the cases were there is a potential for overflow/underflow. Note a few things: 1) You listed "fn-sumdbl3args-1" twice. You meant a different test? 2) "CastAs192" and "CastAs193" does not seems to create an overflow situation. Can you double check those? Thanks, Carmelo
(In reply to comment #2 and #3) > 0) Does your implementation raises an error? Yes, err:FOAR0002 is raised in my implementation. > 1) You listed "fn-sumdbl3args-1" twice. You meant a different test? Yes, thanks for catching! I meant fn-sumdbl3args-6 > 2) "CastAs192" and "CastAs193" does not seems to create an overflow > situation. Can you double check those? You are correct. The relevant overflow/underflow tests are CastAs[182-191] and CastAs[196-198]. Thanks Carmelo!
Naresh: I made all the relevant changes. Please close bug if in agreement and when able to verify. Thanks, Carmelo