---
schema_version: "1"
id: 6b733a90c92489aad7afa88fea2ea0fab4dc822291a779b5a6ae694c5a84d41a
title: pow
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.3/dw-core-functions-pow.md
canonical_url: https://docs.mulesoft.com/dataweave/2.3/dw-core-functions-pow
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 2e46d36713481b865c37a3207631bffe437b8c137290a1c5477d181fe8762fd5
description: MuleSoft Documentation Site
release: "2.3"
latest: false
---
---
product: DataWeave
version: 2.3
---

# pow

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

## pow(Number, Number): Number

Raises the value of a `base` number to the specified `power`.

### Parameters

<table><colgroup><col> <col></colgroup><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><p><code>base</code></p></td><td><p>A number (<code>Number</code> type) that serves as the base.</p></td></tr><tr><td><p><code>power</code></p></td><td><p>A number (<code>Number</code> type) that serves as the power.</p></td></tr></tbody></table>

### Example

This example raises the value a `base` number to the specified `power`. Note that you can also use
the `pow(base,power)` notation (for example, `pow(2,3)` to return `8`).

#### Source

```DataWeave
%dw 2.0
output application/json
---
[ (2 pow 3), (3 pow 2), (7 pow 3) ]
```

#### Output

```JSON
[ 8, 9, 343 ]
```
