
sum()
The sum() function converts the nodes in the argument node-set to numbers and then totals those numbers.
number sum(node-set)
- Must be a node-set. The nodes are converted to numbers using the rules of the number() function.
- A number, the sum of the values of all the nodes. If any of the nodes cannot be converted into numbers, the result is NaN. If the node-set is empty, the result is zero.
|
Send comments on this document to
devdoc-feedback@netscape.com |