9.7. XPath Expressions
In addition to material already covered, XPath provides some basic mathematical processing. However, it is important to remember that all numbers in XPath are floating-point double precision. In addition, there are special representations for positive and negative infinity, as well as NaN (Not a Number).
XPath also provides the five basic arithmetic operators shown in Table 9-2.