bea.com | products | dev2dev | support | askBEA
 Download Docs   Site Map   Glossary 
Search

Building Queries and Data Views

 Previous Next Contents Index View as PDF  

Numeric Operators

XQuery has operators that are specific to numeric operations. The following numeric operators are available:

* (multiply)

Returns the arithmetic product of the operands: ($operand1*$operand2).

Data Types

Notes

This is a numeric operator that you can use as if it were a function to compute numeric results.

The operator accepts two numeric values as parameters, computes their product, and returns the result.

Liquid Data applies the following rules:

XQuery Specification Compliance

Examples

 


+ (add)

Returns the arithmetic sum of the operands: ($operand1+$operand2).

Data Types

Notes

This is a numeric operator that you can use as if it were a function to compute numeric results.

The operator accepts two numeric values as parameters, computes their sum, and returns the result.

Liquid Data applies the following rules:

XQuery Specification Compliance

Examples

 


- (subtract)

Returns the arithmetic difference of the operands: ($operand1-$operand2).

Data Types

Notes

This is a numeric operator that you can use as if it were a function to compute numeric results.

Liquid Data applies the following rules:

XQuery Specification Compliance

Examples

 


div

Returns the arithmetic quotient of the operands ($operand1/$operand2).

Data Types

Notes

This is a numeric operator that you can use as if it were a function to compute numeric results.

Liquid Data applies the following rules:

XQuery Specification Compliance

Examples

 


mod

Returns the remainder after dividing the first operand by the second operand:
($operand1 mod $operand2).

Data Types

Notes

This is a numeric operator that you can use as if it were a function to compute numeric results.

Liquid Data applies the following rules:

XQuery Specification Compliance

Liquid Data does not support not-a-number (NaN), -0, or the negative and positive infinity values -INF and INF.

Examples

 

Back to Top Previous Next