For rounding, a good guess is to always round down on each division. (truncating) When in doubt, D2 seems to take the fastest way out.
Sometimes the order that stuff is done in is funky though. Look at your associativity and commutativity properties, switching them around will make a difference in how things get truncated.
Sometimes the order that stuff is done in is funky though. Look at your associativity and commutativity properties, switching them around will make a difference in how things get truncated.