Skip to main content

XPath Number Operators and Functions

XPath Number Operators

A list of number operators that are used with XPath expressions:

OperatorDescription
+It is used for addition operation.
-It is used for subtraction operation.
*It is used for multiplication operation.
divIt is used for division operation.
modIt is used for modulo operation

XPath Number Functions

A list of functions on numbers that are used with XPath expressions:

FunctionDescription
ceiling()It is used to return the smallest integer larger than the value provided.
floor()It is used to return the largest integer smaller than the value provided.
round()It is used to return the rounded value to nearest integer.
sum()It is used to return the sum of two numbers.