> For the complete documentation index, see [llms.txt](https://docs.cheddar.vihan.org/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cheddar.vihan.org/docs/mathematics/exponentiation.md).

# Exponentiation

## Syntax

```javascript
x ** y
```

## Explanation

The exponentiation operator raises the first operand to the power of the second. It is right associative meaning:

```javascript
x ** y ** z == x ** (y ** z)
```

## Examples

```swift
2 ** 4   // 16
2 ** -3  // 0.125
-2 ** 3  // -8
16 ** .5 // 4
```
