Strange results when getting gameobject.transform.rotation.y

For some reason, when I try to add a gameobject’s y rotation, I get strange results. For example, when the object is at a 90 degree angle, the rotation I get says that it is at 0.7071068 degrees. for a 45 degree angle, 0.3826835.

I have absolutely no idea what is going on. Anyone care to clarify what this is and how to get the actual value?

I am using gameobject.transform.rotation.y

transform.rotation is a Quaternion, not a vector. You can access euler angles by using transform.rotation.eulerAngles.