JavaScript Editor Free JavaScript Editor     JavaScript Debugger 




Main Page

Previous Page
Next Page

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.

Table 9-2. XPath Arithmetic Operators

Operator

Description

+

Addition

-

Subtraction

*

Multiplication

div

Division

mod

Modula, sometimes referred to as the remainder, or what's left over after division



Previous Page
Next Page

R7


JavaScript Editor Free JavaScript Editor     JavaScript Debugger


©