This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 1489 - Missing overflow/underflow/truncation rules for literals
Summary: Missing overflow/underflow/truncation rules for literals
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 1.0 (show other bugs)
Version: Last Call drafts
Hardware: PC Windows 2000
: P2 normal
Target Milestone: ---
Assignee: Don Chamberlin
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-31 16:47 UTC by Mary Holstege
Modified: 2005-07-21 22:55 UTC (History)
0 users

See Also:


Attachments

Description Mary Holstege 2005-05-31 16:47:16 UTC
F&O has detailed rules (section 6.2 numeric operators) for how to handle
numeric overflows, underflows, and insufficient digits of precision in an 
implementation for numeric operators, but the language document does not have 
the parallel set of rules for numeric literals.
Comment 1 Don Chamberlin 2005-07-21 22:54:38 UTC
Mary,
The Query and XSLT working groups discussed this comment at a joint meeting on 
July 21, 2005, and resolved it as follows:

(1) In XQuery Section 3.1.1, Literals, change "Values of numeric literals are 
interpreted according to the rules in XML Schema" to "The value of the numeric 
literal is determined by casting it to the appropriate type according to the 
rules for casting from xdt:untypedAtomic to a numeric type (see [F&O Section 
17.1.1])."

(2) Add to F&O Section 17.1.1, "If the resulting value is too large or small to 
be accurately represented by the implementation, it is handled as a numeric 
overflow or underflow as defined in F&O Section 6.2."

Since you participated in this discussion, I will consider this comment to be 
closed.

Regards,
Don Chamberlin