Converts it to radians.Code:(acos(-1) * user_input) /180;
acos(-1) = arccos(-1) = Pi
Though, in your code you use no trig functions so why does it matter.
Also though, just because a number is negative does not mean it is a smaller angle, but the < > will take negative numbers as smaller.