Please help correct the rotation error

Hi everyone, I’m developing a 2d game and I have a feature that sets my character to turn either 0 degrees or 180, I don’t have features where there would be other turn values, only 0 or 180. So, on the screenshot (on the left side of the game window) you can see that the rotation value is 178 degrees and I have no idea how it works, because I don’t set such numbers, UE4 decides that my character turns 178 degrees instead of 180. Please help me somehow to solve this problem so that I only have 0 or 180. Thank you in advance.