The world’s largest retailer earned $1.09 per share from continuing operations, up from 97 cents a year earlier and near the high end of its forecast of $1.05 to $1.10.

The average analyst estimate was $1.08, according to Thomson Reuters I/B/E/S.

In May, Wal-Mart said same-store sales at the Walmart chain in the US, excluding fuel, would be down 1 percent to up 1 percent.

Analysts, on average, were expecting a decline of 0.6 percent, according to Thomson Reuters data.