The DISTANCE function takes four decimal parameters that represent two points on a Cartesian plane and returns the length between them as a decimal value; for example: DISTANCE(1.0, 1.0, 2.0, 2.0) returns 2.236.
When working with GPS location values, this function should not be used. See the System functions GPS_LOCATION, LATITUDE, LONGITUDE, DISTANCE_MILES, DISTANCE_KILOMETERS, LOCATION, and IS_VALID_LOCATION.
Decimal Number