# Math Functions

▸ ln2() (opens new window)

Returns mathematical constant ln(2).

▸ pi() (opens new window)

Returns the mathematical constant pi.

▸ e() (opens new window)

Returns the mathematical constant e.

▸ sqrt() (opens new window)

Returns the square root of the input.

▸ log10() (opens new window)

Returns the base-ten logarithm of the input.

▸ ln() (opens new window)

Returns the natural logarithm of the input.

▸ log2() (opens new window)

Returns the base-two logarithm of the input.

▸ sin() (opens new window)

Returns the sine of the input.

▸ cos() (opens new window)

Returns the cosine of the input.

▸ tan() (opens new window)

Returns the tangent of the input.

▸ asin() (opens new window)

Returns the arcsine of the input.

▸ acos() (opens new window)

Returns the arccosine of the input.

▸ atan() (opens new window)

Returns the arctangent of the input.

▸ min() (opens new window)

Returns the minimum value of the inputs.

▸ max() (opens new window)

Returns the maximum value of the inputs.

▸ round() (opens new window)

Rounds the input to the nearest integer. Halfway values are rounded away from zero. For example, ["round", -1.5] evaluates to -2.

▸ abs() (opens new window)

Returns the absolute value of the input.

▸ ceil() (opens new window)

Returns the smallest integer that is greater than or equal to the input.

▸ floor() (opens new window)

Returns the largest integer that is less than or equal to the input.

▸ distance() (opens new window)

Returns the shortest distance in meters between the evaluated feature and the input geometry. The input value can be a valid GeoJSON of type Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon, Feature, or FeatureCollection. Distance values returned may vary in precision due to loss in precision from encoding geometries, particularly below zoom level 13.