Numbers can lie -- yet they're the best first step in determining whether a stock is a buy. In this series, we use some carefully chosen metrics to size up a stock's true value based on the following clues:

• The current price multiples.
• The consistency of past earnings and cash flow.
• How much growth we can expect.

Let's see what those numbers can tell us about how expensive or cheap Hewlett-Packard (NYSE: HPQ) might be.

The current price multiples
First, we'll look at most investors' favorite metric: the P/E ratio. It divides the company's share price by its earnings per share (EPS) -- the lower, the better.

Then we'll take things up a notch with a more advanced metric: enterprise value to unlevered free cash flow, which divides the company's enterprise value (basically, its market cap plus its debt, minus its cash) by its unlevered free cash flow (its free cash flow, adding back the interest payments on its debt). As with the P/E, the lower this number is, the better.

Analysts argue about which is more important -- earnings or cash flow. Who cares? A good buy ideally has low multiples on both.

HP has a P/E ratio of 7.5 and an EV/FCF ratio of 9.0 over the trailing 12 months. If we stretch and compare current valuations with the five-year averages for earnings and free cash flow, we see that HP has a P/E ratio of 6.8 and a five-year EV/FCF ratio of 8.4.

A positive one-year ratio of less than 10 for both metrics is ideal (at least in my opinion). For a five-year metric, less than 20 is ideal.

HP is a mouthwatering four for four on hitting the ideal targets, but let's see how it stacks up against some of its competitors and industry mates.

Company

1-Year P/E

1-Year EV/FCF

5-Year P/E

5-Year EV/FCF

HP 7.5 9.0 6.8 8.4
Dell 7.4 4.6 10.4 6.6
Xerox 10.2 11.2 15.6 11.4
IBM 14.1 15.3 16.9 16.2

Source: S&P Capital IQ; NM = not meaningful because of losses.

Numerically, we've seen how HP's valuation rates on both an absolute and relative basis. Next, let's examine ...

The consistency of past earnings and cash flow
An ideal company will be consistently strong in its earnings and cash-flow generation.

In the past five years, HP's net income margin has ranged from 5.6% to 7%. In that same time frame, unlevered free cash flow margin has ranged from 6.4% to 10%.

How do those figures compare with those of the company's peers? See for yourself:

Source: S&P Capital IQ; margin ranges are combined.

In addition, over the past five years, HP has tallied up five years of positive earnings and five years of positive free cash flow.

Next, let's figure out ...

How much growth we can expect
Analysts tend to comically overstate their five-year growth estimates. If you accept them at face value, you will overpay for stocks. But even though you should definitely take the analysts' prognostications with a grain of salt, they can still provide a useful starting point when compared with similar numbers from a company's closest rivals.

Let's start by seeing what this company's done over the past five years. In that time period, HP has put up past EPS growth rates of 8.8%. Meanwhile, Wall Street's analysts expect future growth rates of 9.2%.

Here's how HP compares with its peers for trailing-five-year growth:

Source: S&P Capital IQ; EPS growth shown.

And here's how it measures up with regard to the growth analysts expect over the next five years:

Source: S&P Capital IQ; estimates for EPS growth.

The bottom line
The pile of numbers we've plowed through has shown us the price multiples that shares of Hewlett-Packard are trading at, the volatility of its operational performance, and what kind of growth profile it has -- both on an absolute and a relative basis.

The more consistent a company's performance has been and the more growth we can expect, the more we should be willing to pay. We've gone well beyond looking at a 7.5 P/E ratio, and we see tantalizingly low price multiples all around. Same with Dell.

Past performance has been surprisingly good as well, with consistent profitability and some earnings growth in the last five years.

HP is quite cheap. The question is whether Hewlett-Packard (and Dell, too) is a value trap. A lot will depend on the decisions new-ish CEO Meg Whitman makes. I'm still undecided, but I'll be diving in further beyond the numbers myself. These initial numbers are just a start. If you also find Hewlett-Packard's numbers or story compelling, don't stop here. Continue your due-diligence process until you're confident one way or the other. As a start, add it to My Watchlist to find all of our Foolish analysis.

I wrote about a stock that's flying under the radar in our brand new free report: "The Stocks Only the Smartest Investors Are Buying." I invite you to take a free copy to find out the name of the company I believe Warren Buffett would be interested in if he could still invest in small companies.

Anand Chokkavelu doesn't own shares in any company mentioned. The Motley Fool owns shares of IBM. Motley Fool newsletter services have recommended buying shares of Dell. Try any of our Foolish newsletter services free for 30 days. We Fools don't all hold the same opinions, but we all believe that considering a diverse range of insights makes us better investors. The Motley Fool has a disclosure policy.