Retreiving rotation of an object

I have an object made purely for testing retrieving a rotation. Here is the script:
using UnityEngine;
using System.Collections;

public class TestingRot : MonoBehaviour {
	public float Rot;
	void Update () {
		Rot = gameObject.transform.rotation.y;
	}
}

The number it always returns is : 0.7660445, even though the object’s rotation is 100. There are no other scripts on the object.

Use gameObject.transform.eulerAngles.y instead of gameObject.transform.rotation.y.

Rotation, to my understanding, is the obejcts rotation in the world, relative to its parent, and LocalRotation is the objects own rotation, relative to itself.

So try using localRotation instead of rotation and see if that helps.

Rot = gameObject.transform.localRotation.y;