Yes, you need the modulo operator.
m
modulo n
corresponds to: m = p + k*n
, where p
is the result of the operation m
modulo n
https://docs.mendix.com/refguide/arithmetic-expressions#4-modulo
https://docs.mendix.com/refguide/arithmetic-expressions
4.3 Example
If you use the following input:
23 mod 5
Java
Copy
the output is:
3