---
title: "power"
canonical: "https://support.appfire.com/space/PSJ/15489163/power"
format: markdown
---
> Macro (aura-html)


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | power(base, exponent) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Returns the number raised to the desired power.

Returns the number raised to the desired power.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| number | Number | Yes | Base number. |
| base | Number | Yes | Exponent the base number is raised to. |

## Return Type

**Number**

## Example

```
number a = power(2, 3);
print("a= " + a);
```

Prints: a= 8;

## See also

> Macro (contentbylabel)