W3C home > Mailing lists > Public > public-rdf-dawg-comments@w3.org > March 2012

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

From: Andy Seaborne <andy.seaborne@epimorphics.com>
Date: Sat, 24 Mar 2012 16:04:38 +0000
Message-ID: <4F6DF096.9080305@epimorphics.com>
To: public-rdf-dawg-comments@w3.org
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 24 March 2012 16:05:10 GMT