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

decimals in Turtle tests

From: Henry Story <henry.story@bblfish.net>
Date: Tue, 28 Feb 2012 20:04:20 +0100
Message-Id: <6ADFF92D-B04C-48A3-9053-AA33A6D4684A@bblfish.net>
To: public-rdf-comments@w3.org
I just found that the test suite is assuming there is a maximum
precision for xsd:decimals

In these test suites

http://www.w3.org/TR/turtle/tests/test-28.ttl
http://www.w3.org/TR/turtle/tests/test-28.out

we can find that after a number of 00s the numbers are suddenly simplified

 "2.234000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> .
 "2.2340000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> .
 "2.234"^^<http://www.w3.org/2001/XMLSchema#decimal> .
 "2.234"^^<http://www.w3.org/2001/XMLSchema#decimal> .

I could not find in the xsd spec anything about this, neither in the
rdf semantics specification.  Is this an error, or is this a byproduct
of a specific implementation?


Henry


http://www.w3.org/TR/xsd-precisionDecimal/#precisionDecimal
Social Web Architect
http://bblfish.net/
Received on Tuesday, 28 February 2012 19:04:54 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 28 February 2012 19:04:55 GMT