W3C home > Mailing lists > Public > public-cwm-bugs@w3.org > December 2004

Bug: Bad N-Triples Float Representation

From: Sean B. Palmer <sean+cwm@infomesh.net>
Date: Sun, 12 Dec 2004 04:35:55 +0000
Message-ID: <41BBCAAB.2040307@infomesh.net>
To: public-cwm-bugs@w3.org

Compare the broken:

$ echo '54321.12345 :is "54321.12345" .' | cwm --ntriples 

     "54321.123449999999"^^<http://www.w3.org/2001/XMLSchema#double>
<#is> "54321.12345" .

with:

$ echo '54321.12345 :is "54321.12345" .' | cwm
[...]
      @prefix : <#> .

     54321.12345     :is "54321.12345" .

[relevant n3proc test suite output:
$ ./runtest -n numeric cwm input \\--ntriples 

numeric-01 pass
numeric-02 pass
numeric-03 FAIL
numeric-04 FAIL
numeric-05 pass
Passes: 3; Failures: 2
]

Thanks,

-- 
Sean B. Palmer, http://inamidst.com/sbp/
Received on Monday, 13 December 2004 08:36:44 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:52:00 UTC