Find a good location to perform the measurement. If your roofing material doesn't have an uneven slope caused by the edges of shingles, you can do it on top of the roof. Otherwise, the bottom edge of a gable or a rafter in an unfinished attic will suffice.
Hold the level perfectly horizontal, with one end resting on the slope.
Measure the distance between the 12-inch point on the level and the slope directly above or beneath it, depending on whether you're doing the calculation on top of the roof or underneath. Use this number as the numerator of your angle fraction, with 12 as the denominator.