Pow

Not available in this language yet.
Pow( value, exponent)
Pow( value, exponent)
Pow( value, exponent)
Not available in this language yet.
Not available in this language yet.
Not available in this language yet.
Pow( value, exponent)

Description

The Pow function raises its first numeric argument, the base, to the power of its second numeric argument, the exponent.

Parameters

Argument Type Definition and Requirements

base

Number

The base.

exponent

Number

The exponent.

Returns

The result of raising a number (base) to the power of another number (exponent).

Examples

System.out.println(
    client.query(
        Arr(
            Pow(Value(2), Value(3)),
            Pow(Value(5), Value(2))
        )
    ).get());
client.query([
  q.Pow(2, 3),
  q.Pow(5, 2),
])
.then((ret) => console.log(ret))
println(Await.result(
  client.query(
    Arr(
      Pow(2, 3),
      Pow(5, 2)
    )
  ),
  5.seconds
))
Not available in this language yet.
Not available in this language yet.
Not available in this language yet.
Not available in this language yet.
Not available in this language yet.
[8.0, 25.0]
[ 8, 25 ]
[8.0, 25.0]

Was this article helpful?

We're sorry to hear that.
Tell us how we can improve! documentation@fauna.com

Thank you for your feedback!