docs-v2/content/influxdb3/cloud-serverless/reference/sql/operators/arithmetic.md

869 B

title list_title description menu weight list_code_example source
SQL arithmetic operators Arithmetic operators Arithmetic operators take two numeric values (either literals or variables) and perform a calculation that returns a single numeric value.
influxdb3_cloud_serverless
name parent
Arithmetic operators Operators
301 | Operator | Description | Example | Result | | :------: | :------------- | ------- | -----: | | `+` | Addition | `2 + 2` | `4` | | `-` | Subtraction | `4 - 2` | `2` | | `*` | Multiplication | `2 * 3` | `6` | | `/` | Division | `6 / 3` | `2` | | `%` | Modulo | `7 % 2` | `1` | /content/shared/sql-reference/operators/arithmetic.md