December 20th, 2010, 11:34 AM
Thanks for the valuable information.
December 20th, 2010, 07:50 AM
Are you sure that it is C/C++ standard? I lastly debugged code with overloaded operator+ and I mean to have seen that a+b+c was evaluated as a+(b+c).
I talked of mathematical accuracy.
In...
December 20th, 2010, 05:55 AM
Even if you are right for a specific compiler, it is better readable and mathematical more accurate to using parantheses. See also the code where I add 50 for rounding purposes and where the...
December 20th, 2010, 05:16 AM
You should use parantheses at the right side cause multiplication and division have the same priority and the compiler could perform either operation firstly. Also you should care for rounding cause...