From Divinity Engine Wiki
- query IntegerModulo([in](INTEGER)_Num, [in](INTEGER)_Mod, [out](INTEGER)_Return)
Returns the remainder after division of _Num by _Mod as _Return.
- Success/Failure: Never fails.
- _Return: The remainder after dividing _Num by _Mod.
- Warning: attempts to calculate the remainder after division by 0 causes undefined behaviour and is not caught.