When trying to round the result of a calculation directly, then the round command does not round to the next integer, if the whole term is not covered in parantheses. When saving the result of the calculation in a variable and then do a round on the variable it works fine.
- Operating System
- Windows 7
Simple example for a wrong result
round (3+4)/3 -> 2.33333
round ((3+4)/3) -> 2
_calc = (3+4)/3
round _calc -> 2
gives the correct result.
It's not a bug. That's how the expressions are prioritized.
round (3+4)/3 calculates round (7) first, then divides it by 3.