The octane number is a measure of a fuel's resistance to knocking or pinging in an internal combustion engine. A higher octane number indicates a greater resistance to knocking. Petrol with a higher octane rating is generally used in higher- compression engines.