A simple illustration
If a share trades at KSh20 and annual EPS is KSh4, the simple P/E is 5 times.
Why comparisons need care
Businesses with different growth, risk, debt, accounting and sector economics can deserve very different valuation multiples. Compare like with like and understand the earnings behind the ratio.