Crude oil closed Wednesday's floor session with a gain of $1.39, or 1.7%, at $83.76 a barrel for the May contract, as a weaker dollar helped offset a gain in crude-oil inventories that exceeded the American Petroleum Institute's projections the prior evening.