Get rotation the player in Y axis

I’m taking my rotation player this all right up here
My player starts at position Z
is the value from “1.0”
when he turns down the X axis
is the value from “0.0”
but if he stopped turning for a long time in that position
I wanted to know why the value changes to “5.960464E-08”
it does not exist and can not happen!
Anyone know if I need to normalize this variable code?
anyone been through this problem?

Vector3 rotMessi = Messi.transform.TransformDirection(Vector3.forward);
		print (rotMessi.z);

when he get in X Axis

9277-1.png

when it gets long in the X axis

9278-2.png

That’s scientific notation, which float values will sometimes show that way. 5.960464E-08 is pretty much zero, as in .00000005960464.

Float values have precision limitations and Euler angles are themselves approximate representations of the underlying Quaternion representation of rotation used by Unity.

So… That’s 0 for all practical purposes.