measuring a angle

Hello,
New on the forum...
My problem is to measure the inclination of an object (0 to 90°).
I have in stock a HMC5883L compass module , and did not find any explanation how to use the
z axe data to explicit an inclination .
I use a Arduino uno.
Thanks for your help.

the magnetometer will probably give you a headache.
Depending of where you are, the magnetic lines hits the ground at different angles.

my best answer. Get yourself an accelerometer! , and use the magnetometer for compass only

You may want read:
https://forum.sparkfun.com/viewtopic.php?f=32&t=34955
and
http://www.loveelectronics.co.uk/Tutorials/8/hmc5883l-tutorial-and-arduino-library

thanks for info.
I will have a look in the accelerometer world.