eulerAngles.y always returns 179.9999

I am trying to get a transform’s rotation around its y axis, however both eulerAngles and localEulerAngles seem to always return 179.9999, though the transform is rotating. The code is in C#, void Update () and it’s simply

eulerYRotation = GameObject.FindWithTag("Player").transform.eulerAngles.y;

WHY?

Try to use quaternion instead of euler angles