math:power()

Returns the number that results from raising the first number to the power specified by the second number.

Namespace declaration

  • XSLT
    xmlns:math="http://exslt.org/math"
  • XQuery
    declare namespace math="http://exslt.org/math";

Syntax

math:power(number, number)

Results

Returns a double that is the number that results from raising the first parameter to the power specified by the second parameter.

Example

In an XQuery script, returns the string math:power(100, 0.5) is, the calculated value of 100 raised to the power of 0.5, and a line feed character.
declare namespace math="http://exslt.org/math";

"math:power(100, 0.5) is", math:power(100, 0.5), "
"