Returns the remainder of dividing value1 by value2.
Built-in, C++, C#, Java, XQuery, XSLT 1.0, XSLT 2.0, XSLT 3.0.
Argument |
Description |
---|---|
value1 |
Mandatory parameter. Provides the first operand. |
value2 |
Mandatory parameter. Provides the second operand. |
If the input values are 1.5 and 1, then the result of the modulus function is 0.5. The explanation is that 1.5 / 1 leaves a remainder of 0.5.
If the input values are 9 and 3, then the result is 0, since 9 / 3 leaves no remainder.