get the device actual angles in the world from gyro sensor

is there a simple way to get the actual device angles (0-360, xyz) from the sensors? (or even calc it?)
i need to be able to understand which way the device back is pointing to
i’ve been trying for few days now to get it working currently with all kind of ways and ideas i found but nothing really works in all cases.
i understand that unity works with quaternions, but for my need i have to get the real life angles out of it
thanks a lot

this one,

It works when you use it as quaternion, thats correct,
but i need the actual 0-360 angles and thats not getting the correct values after conversion to degrees,
i need the actual angles for code logic, so quaternions are not really helpful to me

similar topics,

http://answers.unity.com/answers/1427276/view.html

could also check with Dot, if you need to run some code based on direction?

this might give 0-360 values also