Sergio Fernández created MARMOTTA-628:
-----------------------------------------

             Summary: Arithmetic operation in SPARQL use wrong operator 
precedence
                 Key: MARMOTTA-628
                 URL: https://issues.apache.org/jira/browse/MARMOTTA-628
             Project: Marmotta
          Issue Type: Bug
          Components: KiWi Triple Store
    Affects Versions: 3.4.0
            Reporter: Sergio Fernández
            Priority: Minor
             Fix For: 3.3.0


The following query: {code}SELECT ( (4.5-4.4)*0.1 as ?c )  WHERE {}{code}

should return {{0.01}}, but currently gives {{4.06}}.

So it looks it actually does {code}4.5 - 4.4 * 0.1){code} so {code}4.5 - 
(4.4*0.1){code} where parenthesis look to be ignored/removed from the 
calculation.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to