??? 08/05/07 20:09 Read: times |
#142787 - Integer < 65536? Responding to: ???'s previous message |
Dan Henry said:
Unless AxilAngle is a float, all subexpressions on the right hand side of the assignment operator will be performed using integer arithmetic and conversion to a float will be performed when assigned to 'tmp'. ...but with the expression: tmp = 65536 - (10 * AxisAngle + 460) * 221184 / 120000; it worked fine, even with (10 * 180 + 460) * 221184 > 65536. Why is this happen? Or it just happened to work? Stanley |