You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@marmotta.apache.org by "Sergio Fernández (JIRA)" <ji...@apache.org> on 2016/02/12 13:20:18 UTC

[jira] [Assigned] (MARMOTTA-628) Arithmetic operation in SPARQL use wrong operator precedence

     [ https://issues.apache.org/jira/browse/MARMOTTA-628?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Assignee: Sergio Fernández

> 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
>            Assignee: Sergio Fernández
>            Priority: Minor
>             Fix For: 3.3.0
>
>   Original Estimate: 4h
>  Remaining Estimate: 4h
>
> 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)