how to displaying degrees with float ??

how to show displaying degrees with float, more like compas ??
when i turn 90 degrees, and float will show 90,
thanks,
85737-rotation.jpg

It is transform.rotation.eulerAngles.y. To get the angle, check if it is not less than zero, if it is true, then your angle will be equal to Mathf.Repeat(transform.rotation.eulerAngles.y, 360f), else it will be equal to 360f - Mathf.Repeat(transform.rotation.eulerAngles.y, 360f).