[Bug 5691] K2-Literals-6 expected results

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

           Summary: K2-Literals-6 expected results
           Product: XML Query Test Suite
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XML Query Test Suite
        AssignedTo: andrew.eisenberg@us.ibm.com
        ReportedBy: vano_msu@mail.ru
         QAContact: public-qt-comments@w3.org


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.

Received on Friday, 16 May 2008 09:33:05 UTC