You are right, the math/maths itself is actually really simple. Where it gets slightly complicated though is that one of the ranges is -150 to +150. It's easy to think that is a range of 300, when in fact it is a range of 301. This yields the "off by one" error that has been well covered above. That's where knowing how stuff it represent by the machine can be useful.
Bookmarks