Actor rotation being changed from -180 to 180?

I’m creating a camera movement system where the player can press A or D and they will rotate 90 degrees right or left. So if I try to clamp the values to always been between 0 and 360, it will change the direction the player rotates.