Re: question on sparql 1.1 test 'Protect from error in AVG'

On 3/24/12 9:04 AM, Andy Seaborne wrote:
> Dave,
> 
>> z group:
>> ( 2.5e0 [double], 0 [integer], 3.5 [decimal], 4 [integer] ) / 4 [integer]
>> = 10.0 [ decimal ] / 4 [integer]
>> = 2.5 [decimal]
> 
> double + decimal -> double.
> 
> = 10.0 [ double ] / 4 [integer]
> = 2.5 [double]
> 
> http://www.w3.org/TR/xpath20/#dt-type-promotion
> Section B.1
> Numeric type promotion: 1b

Thanks.  This stuff is hard to find.

As a related point, it would help if expected results were in canonical XSD
format rather than valid but not canonical.  In this case agg-err-02.srx has

        <literal
datatype="http://www.w3.org/2001/XMLSchema#double">2.5e0</literal>

which should be 2.5E0  - this appears twice

Dave

Received on Saturday, 24 March 2012 19:55:01 UTC