Bug: Bad N-Triples Float Representation

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