RE: Overflow during computation of arithmetic functions

> 
> 
> 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