Skip to content

Document additional math functions #1550

@jsternberg

Description

@jsternberg

The following functions are now implemented in InfluxQL.

  • exp(x), ln(x), log(x, y), log2(x), log10(x)
  • pow(x, y), sqrt(x)
  • ceil(x), floor(x), round(x)

The x and y represent the arguments to the functions. All math functions can be used anywhere math can be used. Here are a few examples:

SELECT abs(x) FROM m
SELECT abs(mean(x)) FROM m
SELECT pow(x, 2) FROM m
SELECT pow(2, x) FROM m
SELECT pow(x, y) FROM m

It will also be usable inside of a where clause like other math functions.

influxdata/influxdb#9620
influxdata/influxdb#9632

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions