﻿---
title: ES|QL mathematical functions
description: ES|QL supports these mathematical functions: 
url: https://docs-v3-preview.elastic.dev/elastic/elasticsearch/pull/151137/reference/query-languages/esql/functions-operators/math-functions
products:
  - Elasticsearch
applies_to:
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Generally available
---

# ES|QL mathematical functions
ES|QL supports these mathematical functions:
- [`ABS`](https://docs-v3-preview.elastic.dev/elastic/elasticsearch/pull/151137/reference/query-languages/esql/functions-operators/math-functions/abs)
  Returns the absolute value of a number.
- [`ACOS`](https://docs-v3-preview.elastic.dev/elastic/elasticsearch/pull/151137/reference/query-languages/esql/functions-operators/math-functions/acos)
  Returns the arccosine of a number.
- [`ACOSH`](https://docs-v3-preview.elastic.dev/elastic/elasticsearch/pull/151137/reference/query-languages/esql/functions-operators/math-functions/acosh)
  Returns the inverse hyperbolic cosine of a number.
- [`ASIN`](https://docs-v3-preview.elastic.dev/elastic/elasticsearch/pull/151137/reference/query-languages/esql/functions-operators/math-functions/asin)
  Returns the arcsine of a number.
- [`ASINH`](https://docs-v3-preview.elastic.dev/elastic/elasticsearch/pull/151137/reference/query-languages/esql/functions-operators/math-functions/asinh)
  Returns the inverse hyperbolic sine of a number.
- [`ATAN`](https://docs-v3-preview.elastic.dev/elastic/elasticsearch/pull/151137/reference/query-languages/esql/functions-operators/math-functions/atan)
  Returns the arctangent of a number.
- [`ATAN2`](https://docs-v3-preview.elastic.dev/elastic/elasticsearch/pull/151137/reference/query-languages/esql/functions-operators/math-functions/atan2)
  Returns the two-argument arctangent of y and x coordinates.
- [`ATANH`](https://docs-v3-preview.elastic.dev/elastic/elasticsearch/pull/151137/reference/query-languages/esql/functions-operators/math-functions/atanh)
  Returns the inverse hyperbolic tangent of a number.
- [`CBRT`](https://docs-v3-preview.elastic.dev/elastic/elasticsearch/pull/151137/reference/query-languages/esql/functions-operators/math-functions/cbrt)
  Returns the cube root of a number.
- [`CEIL`](https://docs-v3-preview.elastic.dev/elastic/elasticsearch/pull/151137/reference/query-languages/esql/functions-operators/math-functions/ceil)
  Rounds a number up to the nearest integer.
- [`COPY_SIGN`](https://docs-v3-preview.elastic.dev/elastic/elasticsearch/pull/151137/reference/query-languages/esql/functions-operators/math-functions/copy_sign) <applies-to>Elastic Stack: Generally available since 9.1</applies-to>
  Combines the magnitude of one number with the sign of another.
- [`COS`](https://docs-v3-preview.elastic.dev/elastic/elasticsearch/pull/151137/reference/query-languages/esql/functions-operators/math-functions/cos)
  Returns the cosine of an angle.
- [`COSH`](https://docs-v3-preview.elastic.dev/elastic/elasticsearch/pull/151137/reference/query-languages/esql/functions-operators/math-functions/cosh)
  Returns the hyperbolic cosine of a number.
- [`E`](https://docs-v3-preview.elastic.dev/elastic/elasticsearch/pull/151137/reference/query-languages/esql/functions-operators/math-functions/e)
  Returns the mathematical constant e.
- [`EXP`](https://docs-v3-preview.elastic.dev/elastic/elasticsearch/pull/151137/reference/query-languages/esql/functions-operators/math-functions/exp)
  Returns the value of e raised to the power of the given number.
- [`FLOOR`](https://docs-v3-preview.elastic.dev/elastic/elasticsearch/pull/151137/reference/query-languages/esql/functions-operators/math-functions/floor)
  Rounds a number down to the nearest integer.
- [`HYPOT`](https://docs-v3-preview.elastic.dev/elastic/elasticsearch/pull/151137/reference/query-languages/esql/functions-operators/math-functions/hypot)
  Returns the hypotenuse of two numbers.
- [`LOG`](https://docs-v3-preview.elastic.dev/elastic/elasticsearch/pull/151137/reference/query-languages/esql/functions-operators/math-functions/log)
  Returns the logarithm of a value to a base.
- [`LOG10`](https://docs-v3-preview.elastic.dev/elastic/elasticsearch/pull/151137/reference/query-languages/esql/functions-operators/math-functions/log10)
  Returns the base-10 logarithm of a number.
- [`PI`](https://docs-v3-preview.elastic.dev/elastic/elasticsearch/pull/151137/reference/query-languages/esql/functions-operators/math-functions/pi)
  Returns the mathematical constant pi.
- [`POW`](https://docs-v3-preview.elastic.dev/elastic/elasticsearch/pull/151137/reference/query-languages/esql/functions-operators/math-functions/pow)
  Returns a value raised to the power of an exponent.
- [`ROUND`](https://docs-v3-preview.elastic.dev/elastic/elasticsearch/pull/151137/reference/query-languages/esql/functions-operators/math-functions/round)
  Rounds a number to the specified number of decimal places.
- [`ROUND_TO`](https://docs-v3-preview.elastic.dev/elastic/elasticsearch/pull/151137/reference/query-languages/esql/functions-operators/math-functions/round_to) <applies-to>Elastic Stack: Preview since 9.1</applies-to> <applies-to>Elastic Cloud Serverless: Preview</applies-to>
  Rounds down to one of a list of fixed points.
- [`SCALB`](https://docs-v3-preview.elastic.dev/elastic/elasticsearch/pull/151137/reference/query-languages/esql/functions-operators/math-functions/scalb) <applies-to>Elastic Stack: Generally available since 9.1</applies-to>
  Returns the result of multiplying a number by 2 raised to a scale factor.
- [`SIGNUM`](https://docs-v3-preview.elastic.dev/elastic/elasticsearch/pull/151137/reference/query-languages/esql/functions-operators/math-functions/signum)
  Returns the sign of the given number.
- [`SIN`](https://docs-v3-preview.elastic.dev/elastic/elasticsearch/pull/151137/reference/query-languages/esql/functions-operators/math-functions/sin)
  Returns the sine of an angle.
- [`SINH`](https://docs-v3-preview.elastic.dev/elastic/elasticsearch/pull/151137/reference/query-languages/esql/functions-operators/math-functions/sinh)
  Returns the hyperbolic sine of a number.
- [`SQRT`](https://docs-v3-preview.elastic.dev/elastic/elasticsearch/pull/151137/reference/query-languages/esql/functions-operators/math-functions/sqrt)
  Returns the square root of a number.
- [`TAN`](https://docs-v3-preview.elastic.dev/elastic/elasticsearch/pull/151137/reference/query-languages/esql/functions-operators/math-functions/tan)
  Returns the tangent of an angle.
- [`TANH`](https://docs-v3-preview.elastic.dev/elastic/elasticsearch/pull/151137/reference/query-languages/esql/functions-operators/math-functions/tanh)
  Returns the hyperbolic tangent of a number.
- [`TAU`](https://docs-v3-preview.elastic.dev/elastic/elasticsearch/pull/151137/reference/query-languages/esql/functions-operators/math-functions/tau)
  Returns the mathematical constant tau.