Problems with quaternions

Hello everyone.
How can I compare quaternions? Is it possible?
Context: I want to limit the angle of attack and I need to compare the angles…

The only thing that comes to my mind is to transform the data into something more readable.

Not a quaternion comparison, but it sounds like you could use the dot product of two vectors to achieve your goal.
You can read more here:

I did not understand much

Already achieved!
The script:

float angleDifference =  Quaternion.Angle(transform.rotation, sight.rotation);

The quaternions can be compared, you just have to convert the angle to a more manageable one…

So the int of x y z w or the rounded value of x y z w can be compared.
You can compare sure. But often you’ll need to do preparation for the comparison. Otherwise the operators used to produce your result may have simply thrown back values that cant be compared in that raw state as it were.