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

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

	Andy

Received on Saturday, 24 March 2012 16:05:10 UTC