[
https://issues.apache.org/jira/browse/MARMOTTA-628?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sergio Fernández resolved MARMOTTA-628.
---------------------------------------
Resolution: Fixed
> 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.3.0
> Reporter: Sergio Fernández
> Assignee: Sergio Fernández
> Priority: Minor
> Fix For: 3.4.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)