Jira issue originally created by user mdehghani:
A DQL query that contains an arithmetic expression like 'a/(bc)' will be compiled to 'a/b*c' in SQL and therefore the result of '100/(22)' will be 100, instead of 25.
Note: I have tested it by mysql only
Comment created by @ocramius:
Being handled in DDC-2355
Issue was closed with resolution "Fixed"