Lets say that I am heading North when the direction of my movement is somewhere between 340, and 20 degrees, thus accepting N to be +-20 degrees from the actual North direction of 0. So if my direction is a random number X between 0 and 359, how am I going to determine if my variable X is in the provided range?