is there a type of variable that understands that 360 is less than 0

```
var spin:int
var a1 = desy - y ;
var b1 = desx - x ;
var radians1 = Math.atan2(a1,b1);
var andleInDegrees = radians1 / (Math.PI / 180);
//andleInDegrees += 180
andleInDegrees = int(andleInDegrees)
trace(andleInDegrees)
if(facing.rotation < andleInDegrees){spin = 1}
if(facing.rotation > andleInDegrees){spin = -1}
if(facing.rotation == andleInDegrees){spin = 0}
facing.rotation += spin
```

this works as long as i dont cross the 360/0 threshold (it may be -180/180 since i removed the +180)