You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Andy Seaborne (JIRA)" <ji...@apache.org> on 2019/02/20 20:57:00 UTC

[jira] [Created] (JENA-1674) Mishandling negative xsd:floats in TDB2

Andy Seaborne created JENA-1674:
-----------------------------------

             Summary: Mishandling negative xsd:floats in TDB2
                 Key: JENA-1674
                 URL: https://issues.apache.org/jira/browse/JENA-1674
             Project: Apache Jena
          Issue Type: Improvement
          Components: TDB2
    Affects Versions: Jena 3.10.0
            Reporter: Andy Seaborne
            Assignee: Andy Seaborne
             Fix For: Jena 3.11.0


Reported on users@:
https://lists.apache.org/thread.html/063ad1651c559752080001c7faa40d24d0bf29d78636f3a3e222c1ab@%3Cusers.jena.apache.org%3E

Example:
{code}
    public static void main(String[] args) {
        Node[] nodes = { 
            NodeFactory.createLiteral("-1.0", XSDDatatype.XSDfloat )
            , NodeFactory.createLiteral("-1.0", XSDDatatype.XSDdouble )
        };
        
        for ( Node n : nodes ) {
            NodeId nid = NodeIdInline.inline(n);
            Node n2 = NodeIdInline.extract(nid);
            System.out.printf("%-20s => %s\n", n, n2);
        }
    }
{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)