- From: Dave Beckett <dave@dajobe.org>
- Date: Sat, 24 Mar 2012 12:54:25 -0700
- To: Andy Seaborne <andy.seaborne@epimorphics.com>
- CC: public-rdf-dawg-comments@w3.org
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