Computing the distance between two integers on a number line