W3C home > Mailing lists > Public > public-qt-comments@w3.org > September 2003

RE: Overflow during computation of arithmetic functions

From: Kay, Michael <Michael.Kay@softwareag.com>
Date: Fri, 26 Sep 2003 16:01:12 +0200
Message-ID: <DFF2AC9E3583D511A21F0008C7E62106073DD161@daemsg02.software-ag.de>
To: Michael Brundage <xquery@comcast.net>, public-qt-comments@w3.org
> 
> 
> How is overflow to be handled during the computation of 
> arithmetic functions?


This is explained in section 6.2 of the Functions & Operators specification.

Michael Kay



> 
> For example, on implementations that choose to limit the 
> precision of xs:integer to (signed) 64 bit integers, should
> 
> let $max_int := xs:integer("9223372036854775807")
> return avg(($max_int, $max_int))
> 
> succeed and return $max_int, fail with overflow, or is the 
> behavior implementation-dependent/defined?
> 
> 
> 
> 
> Michael Brundage
> xquery@comcast.net
> 
> Writing as
> Author, "XQuery: The XML Query Language" (Addison-Wesley, to 
> appear 2003) Co-author, "Professional XML Databases" (Wrox 
> Press, 2000)
> 
> not as
> Technical Lead
> Common Query Runtime/XML Query Processing
> WebData XML Team
> Microsoft
> 
Received on Friday, 26 September 2003 10:01:23 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:14 UTC