> For the complete documentation index, see [llms.txt](https://docs.videc.de/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.videc.de/acron-9.3/en/intro/operator/operator_arithmetisch.md).

# Arithmetic Operators

With the arithmetical operators you perform mathematical calculations (basic arithmetic operations).

Please note that for arithmetic operators the well-known processing hierarchy "point before dash calculation" applies.

First the operator 'Modulo' is evaluated, then multiplication and division ("\*" and "/"), and finaly addition and subtraction ("+" and "-"). If you want a different processing sequence you must use brackets. The 'innermost' brackets are always evaluated first.

The Formula Editor provides the following arithmetic operators:

| Operator | Meaning                           | Data types               |
| -------- | --------------------------------- | ------------------------ |
| +        | [Addition](#addition)             | NUMBER, DATETIME, STRING |
| -        | [Subtraction](#subtraktion)       | NUMBER, DATETIME         |
| \*       | [Multiplication](#multiplikation) | NUMBER                   |
| /        | [Division](#division)             | NUMBER                   |
| %        | [Modulo](#modulo)                 | NUMBER                   |

Please note that the arithmetic operators are evaluated in the well-known 'point before line' hierarchy. An expression is executed in the order Modulo operator (%), multiplication/division (\*,/) and lastly addition/subtraction (+,-).

If you want to bypass this order you must use brackets. The levels of brackets are then evaluated from inside to outside.

## Addition (+) <a href="#addition" id="addition"></a>

|               |                                                                                                            |
| ------------- | ---------------------------------------------------------------------------------------------------------- |
| Syntax:       | Operand + Operand                                                                                          |
| Data types:   | NUMBER, DATETIME, STRING                                                                                   |
| Return value: | The data type of the operands.                                                                             |
| Description:  | Adds the two operands and returns the result of the addition. Both operands must be of the same data type. |

## Subtraction (-) <a href="#subtraktion" id="subtraktion"></a>

|               |                                                                                                   |
| ------------- | ------------------------------------------------------------------------------------------------- |
| Syntax:       | Operand - Operand                                                                                 |
| Data types:   | NUMBER, DATETIME                                                                                  |
| Return value: | NUMBER, DATETIME                                                                                  |
| Description:  | Subtracts the second operand from the first operand. Both operands must be of the same data type. |

## Multiplication (\*) <a href="#multiplikation" id="multiplikation"></a>

|               |                                                                           |
| ------------- | ------------------------------------------------------------------------- |
| Syntax:       | Operand \* Operand                                                        |
| Data types:   | NUMBER                                                                    |
| Return value: | NUMBER                                                                    |
| Description:  | Multiplies the two operands. Both operands must be of the same data type. |

## Division (/) <a href="#division" id="division"></a>

|               |                                                                                               |
| ------------- | --------------------------------------------------------------------------------------------- |
| Syntax:       | Operand / Operand                                                                             |
| Data types:   | NUMBER                                                                                        |
| Return value: | NUMBER                                                                                        |
| Description:  | Divides the first operand by the second operand. Both operands must be of the same data type. |

## Modulo (%) <a href="#modulo" id="modulo"></a>

|               |                                                                                                                                                    |
| ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| Syntax:       | Operand % Operand                                                                                                                                  |
| Data types:   | NUMBER                                                                                                                                             |
| Return value: | NUMBER                                                                                                                                             |
| Description:  | Calculates the modulo or residual value from the division of the first operand by the second operand. Both operands must be of the same data type. |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.videc.de/acron-9.3/en/intro/operator/operator_arithmetisch.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
