This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
K2-Literals-6 result depends on impelemntation defined rounding algorithm. It seems it should be based on the following rule (F&O 17.1.1): "In casting to xs:decimal or to a type derived from xs:decimal, if the value is not too large or too small but nevertheless cannot be represented accurately with the number of decimal digits available to the implementation, the implementation may round to the nearest representable value or may raise a dynamic error [err:FOCA0006]. The choice of rounding algorithm and the choice between rounding and error behavior and is implementation-defined." but not on "In casting to numerics, if the value is too large or too small to be accurately represented by the implementation, it is handled as an overflow or underflow as defined in 6.2 Operators on Numeric Values." like in K2-Literals-4,5.
The query reads: (:*******************************************************:) (: Test: K2-Literals-6 :) (: Written by: Frans Englich :) (: Date: 2007-11-22T11:31:21+01:00 :) (: Purpose: Use a relatively large xs:decimal literal. :) (:*******************************************************:) 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999.1 The expected results is FOAR0002 and: 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999.1 For the baseline, it to me seems no rounding has been done. Do you suggest that: * FOAR0002 is replaced with FOCA0006 * An additional numeric baseline is added with the number that your implementation in question produce. An alternative to this is to accept any output, but that's preferably avoided.
It enough for me to add the following value: 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 However, FOCA0006 is better here also I suppose.
Should be fixes in CVS. Added the suggested baseline, and changed to error code FOCA0006. Feel free to change status to CLOSED if the resolution is satisfactory.
Ok. Thanks.