Consider the following expression:
C#(angle + Math.PI) % (Math.PI * 2)
In this expression the parenthesis around Math.PI * 2
are necessary, because the %
operator takes precedence over the *
operator.
Unfortunately when the option "Use optional parenthesis" is off for expressions, Code Cleanup will remove the parenthesis. Since they are necessary for this expression, I think Code Cleanup should not remove them.
Thanks,
Joost
Joost,
I reproduced this issue. We will fix it shortly.