W3C home > Mailing lists > Public > public-rdf-dawg@w3.org > July to September 2010

Re: more aggregate tests

From: Gregory Williams <greg@evilfunhouse.com>
Date: Sun, 19 Sep 2010 23:40:44 -0400
Cc: SPARQL Working Group <public-rdf-dawg@w3.org>
Message-Id: <A4140888-1129-43F8-83D6-DBA4894B9201@evilfunhouse.com>
To: Andy Seaborne <andy.seaborne@epimorphics.com>
On Sep 18, 2010, at 9:17 AM, Andy Seaborne wrote:

> :mixed2 is the sum of "2.2"^^xsd:decimal and "2e-1"^^xsd:double.  So the decimal is converted to a double and the result added together but ARQ gets 2.4000000000000004e0 - there is one bit of low end noise introduced by the addition being done on doubles of different exponent (this is Java double+double doing that step).  xsd:float, not double, works.


Will float work consistently? If so, I can update the test to use it. If not, any thoughts on how we might test the execution of sum with datatype promotion in a portable manner?

.greg
Received on Monday, 20 September 2010 03:41:15 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:15:43 GMT