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

# pow

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

## pow(base: Number, power: 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 ]
```
