W3C home > Mailing lists > Public > public-qt-comments@w3.org > May 2008

[Bug 5691] K2-Literals-6 expected results

From: <bugzilla@farnsworth.w3.org>
Date: Fri, 16 May 2008 09:32:30 +0000
CC:
To: public-qt-comments@w3.org
Message-Id: <E1JwwIg-0004Zk-HA@farnsworth.w3.org>

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:23 UTC