On a number line, the distance between the two points is measured using the distance formula. It is represented by: \\(d=\\sqrt{\\left(x_2-x_1\\right)^2+\\left(y_2-y_1\\right)^2}\\)