MODULO
Applies to: CELONIS 4.0 CELONIS 4.2 CELONIS 4.3 CELONIS 4.4 CELONIS 4.5 CELONIS 4.6
Description
The modulo operator returns the remainder of a division of both arguments.
The result has always the same sign as the first argument. If at least one of the input arguments is NULL, the result is NULL as well.
Both arguments can be INT or FLOAT values. If both input arguments are INTs, the return type is also an INT. Otherwise, the result is a FLOAT.
Syntax
MODULO ( dividend, divisor )
dividend % divisor
(Since: CELONIS 4.5)
Examples
[1] Calculate the modulo of integers. The result has always the same sign as the first argument. |
[2] Calculate the modulo of integers with NULL values. If at least one input value is NULL, the result is NULL as well. |
[3] Calculate the modulo of floats. The result is always a float. |
[4] Calculate the modulo of an integer divided by a float. The result is always a float. |