👉 In mathematics, a metric is a way of assigning a number to each pair of points in a set, such that distance between two points is defined. It's a tool used for describing and comparing distances between objects or entities. For example, consider a line segment with endpoints A and B. The distance AB can be measured by the length of a line segment from A to B. In this case, 1 unit (a fixed number) is assigned to each point on the line segment because it