|
Home > Online Product Documentation > Table of Contents > Calling Number Functions Calling Number FunctionsThis section describes the number functions that you can call in a query. The operations you can perform are Converting an Object to a Number
In some situations, you might want to force a numeric comparison. The XPath processor performs a numeric comparison if either operand is numeric and neither is Boolean. (If one operand is Boolean, the XPath processor converts the other to Boolean and performs a Boolean comparison.) However, if neither operand is a numeric or Boolean value, you can call the
To perform a numeric comparison, you must call the
The format of the
If you omit the argument, the value of the argument defaults to a node set with the context node as its only member.
Table 67 shows how the
Obtaining the Sum of the Values in a Node Set
To obtain the sum of the values of the nodes in a set, call the
For each node in the argument node-set, the XPath processor converts the string value of the node to a number. The
Obtaining the Largest, Smallest, or Closest Number
To obtain the largest integer that is not greater than a particular number, call the
The
To obtain the smallest integer that is not less than a particular number, call the
The
To obtain the closest integer to a particular number, call the
The
|
Developer Resource Center: Learn XML and Stylus Studio
Learning XML is easy with Stylus Studio. Check out our free XML tutorials, XML whitepapers, online video demonstrations, XML examples and XML references and more.
Content Management
Build Content Management systems with Stylus Studio's powerful XML publishing tools that enable you to unlock and re-use valuable content from your enterprise information repositories.
Validating EDIFACT Documents with XML Schemas
Either before or after transforming EDIFACT content, generated XML Schemas will make sure that we have all of the necessary components, our codes are all according to the standard codelists, and every little delimiter is in the right place.
Report Generation - Visually Defining Relationships in XML Publisher
Develop report generation applications with a powerful relationship manager in XML Publisher which provides a powerful and easy way to group and join data from one or more data sources.