??? 08/06/07 04:12 Read: times |
#142798 - Division is not always first Responding to: ???'s previous message |
Neil Kurzman said:
tmp = 65536 - (10 * AxisAngle + 460) * 221184 / 120000
First the C rule of precedence say division is done first ... Not quite; only when there is no operator of equal or higher precedence around. There's a multiplication operator just to the left of 221184 that has equal precedence. Thus, '(10 * AxisAngle + 460) * 221184' will be performed before the division. |