Calculate Direction returning odd values

Hi, I am New to Unreal engine and i wanted to create a 2D Blendspace for my character. It has 2 inputs, Speed and Direction. I just used the speed variable for the speed, but for the direction i watched a youtube video, where this function:

Would Return the diriection between -180 and 180 degrees. But for me it returned this:

When not moveing: 90
When Walking forward: -0,002
When Walking Left: -82
When walking Right: 83
When Walking backwards: 173

So my question Is, Why is it returing these odd values instead -180-180 ?

What is calculate direction connected to? I would like to see the full blueprint if possible.

The values will be between -180 and 180, so it is returning the correct values.