Hi, I'm Ask INFA!
What would you like to know?
ASK INFAPreview
Please to access Ask INFA.

Table of Contents

Search

  1. Preface
  2. Understanding Data Types and Field Properties
  3. Designing Processes
  4. Using and Displaying Data
  5. Designing Guides
  6. Designing Process Objects
  7. Designing Service Connectors
  8. Using App Connections
  9. System Services, Listeners and Connectors
  10. Designing Human Tasks

Design

Design

pow

pow

The pow function in XQuery returns the value of the first numeric argument raised to the power of the second numeric argument, that is ( x^y ).

Syntax

math:pow(arg1, arg2)
The following table describes the argument for this command:
Argument
Required/Optional
Description
arg1
Required
The base number to be raised to a power.
arg2
Required
The exponent value to raise the base to.

Return Value

  • Returns the value of
    $base
    raised to the power of
    $exponent
    .
  • Returns an empty sequence if either argument is an empty sequence.

Examples

The following table lists some sample values and return values:
SAMPLE FUNCTION
OUTPUT
math:pow(2, 3)
8
math:pow(10, 0)
1
math:pow(5, -1)
0.2
math:pow((), 2)
()
math:pow(2, ())
()

Additional information

  • Both parameters are required and must be numeric.
  • The function supports integer, decimal, float, and double numeric types.
  • It returns a numeric value representing the power calculation.
  • Gracefully handles empty inputs by returning an empty sequence.

0 COMMENTS

We’d like to hear from you!