DISTANCE function

Synopsis
This function returns the distance between 2 pairs of coordinates.
Variations
DISTANCE(FirstPointX, FirstPointY, LastPointX, LastPointY)
Returns the distance between 2 pairs of coordinates.
Parameters
FirstPointX

Specifies the X-coordinate of the first point.

Supported types: Numeric.
FirstPointY

Specifies the Y-coordinate of the first point.

Supported types: Numeric.
LastPointX

Specifies the X-coordinate of the last point.

Supported types: Numeric.
LastPointY

Specifies the Y-coordinate of the last point.

Supported types: Numeric.
Returns
Returned types: Numeric.
Examples
1.

This example calculates the distance between point (2,3) and (4,5).

DISTANCE(2,3,4,5)