elasticsearch/docs/reference/esql/functions/binary.asciidoc

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

78 lines
1.8 KiB
Plaintext
Raw Normal View History

[discrete]
[[esql-binary-operators]]
=== Binary operators
[[esql-binary-operators-equality]]
==== Equality
[.text-center]
image::esql/functions/signature/equals.svg[Embedded,opts=inline]
Supported types:
include::types/equals.asciidoc[]
==== Inequality `!=`
[.text-center]
image::esql/functions/signature/not_equals.svg[Embedded,opts=inline]
Supported types:
include::types/not_equals.asciidoc[]
==== Less than `<`
[.text-center]
image::esql/functions/signature/less_than.svg[Embedded,opts=inline]
include::types/less_than.asciidoc[]
==== Less than or equal to `<=`
[.text-center]
image::esql/functions/signature/less_than_or_equal.svg[Embedded,opts=inline]
include::types/less_than_or_equal.asciidoc[]
==== Greater than `>`
[.text-center]
image::esql/functions/signature/greater_than.svg[Embedded,opts=inline]
include::types/greater_than.asciidoc[]
==== Greater than or equal to `>=`
[.text-center]
image::esql/functions/signature/greater_than_or_equal.svg[Embedded,opts=inline]
include::types/greater_than_or_equal.asciidoc[]
==== Add `+`
[.text-center]
image::esql/functions/signature/add.svg[Embedded,opts=inline]
include::types/add.asciidoc[]
==== Subtract `-`
[.text-center]
image::esql/functions/signature/sub.svg[Embedded,opts=inline]
include::types/sub.asciidoc[]
==== Multiply `*`
[.text-center]
image::esql/functions/signature/mul.svg[Embedded,opts=inline]
include::types/mul.asciidoc[]
==== Divide `/`
[.text-center]
image::esql/functions/signature/div.svg[Embedded,opts=inline]
NOTE: Division of two integer types will yield an integer result, rounding towards 0.
If you need floating point division, <<esql-cast-operator>> one of the arguments to a `DOUBLE`.
include::types/div.asciidoc[]
==== Modulus `%`
[.text-center]
image::esql/functions/signature/mod.svg[Embedded,opts=inline]
include::types/mod.asciidoc[]