??? 08/06/07 02:29 Read: times |
#142794 - Why? Responding to: ???'s previous message |
Why would you try such a complicated expression in C the you would never thy in ASM.
tmp = 65536 - (10 * AxisAngle + 460) * 221184 / 120000 First the C rule of precedence say division is done first "221184 / 120000" is 1 not 1.84 "221184.0 / 120000.0" or "221184f / 120000f" might help. back to the original question. why not figure our the correct formula to work with the proper integer constants and not bring longs or floats in to this. Also verify you ranges does the faster timer overflow within you operating range. |