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

# 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 ]
```
