Multiplication and Division:

The operator * multiplies two numbers. If the operands are of different types, XPath 2.0 specifications say that one of them is promoted to the type of the other. <strike></strike> The result is the same type as the operands after promotion.

The operator div divides two numbers. Dividing two integers produces a double; in other cases the result is the same type as the operands.

The operator idiv performs integer division. For example, the result of 10 idiv 3 is 3.

The mod operator returns the modulus (or remainder) after division.

The operators * and div may also be used to multiply or divide a range by a number.

For example, (1 idiv 1 to 3) returns the result: xs:integer: 1, xs:integer: 2, xs:integer: 3