NEW YORK (AP) — U.S. stocks climbed Friday and trimmed their losses for the week after a report showed that inflation is behaving roughly as economists expected, even if it’s still high.

The S&P 500 rose 0.6% and broke its three-day losing streak. The Dow Jones Industrial Average gained 299 points, or 0.7%, and the Nasdaq composite added 0.4%. All three indexes pulled closer to the all-time highs they set at the start of the week.

Stocks got some help from a report showing that inflation in the United States accelerated to 2.7% last month from 2.6% in July, according to the measure of prices that the Federal Reserve likes to use. While that’s above the Fed’s 2% target, and it’s more painful than any household would like, it was precisely what economists had forecast.

That offered some h

See Full Page