Numerical operators
Numerical operators have decimal numbers as operands.
The + Add operator adds numbers. It can also add a date with a time span.
2025-06-12 + 10 days equals June 22 in the following format: 2025-06-22
The following combinations are possible:
First operand | Second operand | Result |
|---|---|---|
Duration | Duration | Duration |
Date and time | Duration | Date and time |
The - Subtract operator subtracts numbers. It can also subtract a time span from a date. The second operand is subtracted from the first.
2025-06-11 - 10 days equals June 1st in the following format: 2025-06-01.
The following combinations are possible:
First operand | Second operand | Result |
|---|---|---|
Duration | Duration | Duration |
Date and time | Date and time | Date and time |
Date and time | Duration | Date and time |
The x Multiply operator multiplies numbers. The result is a floating-point number.
The / Divide operator divides numbers. The first operand is divided by the second. The result is a floating-point number.