??? 08/05/07 23:54 Modified: 08/05/07 23:56 Read: times |
#142790 - A float constant Responding to: ???'s previous message |
Stanley Lio said:
So if the number has to be 22118400 not 221184, I guess making AxisAngle as a float variable is the only solution in this case? (My emphasis) No, using a floating point constant somewhere would do it too: tmp = 65536 - (10.0 * AxisAngle + 460) * 22118400 / 12000000; tmp = 65536 - (10 * AxisAngle + 460) * 22118400.0 / 12000000; |