Remainder operator
The remainder operator % produces a result by computing the numeric remainder from dividing the left operand value by the right operand value. For example, the expression 13%5 yields a result of 3.
Operand type
If both operands are of type integer, then the integral remainder is computed and the result is of type integer. If both operands are of type decimal or both of type float, then the floating-point remainder is computed and the result type is the same as the operand type.
If the right operand’s value is zero, a runtime error is raised.