---
updatedAt: 2026-04-16T21:23:00.000Z
agentTools:
  projectIndex: https://docs.observeinc.com/llms.txt
---

# pow

```
pow(base: numeric, exponent: numeric) -> float64
```

Raises numeric `base` to numeric `exponent` and returns a `float64`. If either argument is null, the result is null. `0` raised to a negative exponent is undefined and yields null. A negative `base` with a non-integer `exponent` yields null because the real power is not generally defined.

# Domain

This is a scalar function (calculates a single output value for a single input row).

# Categories

* [Numeric](function#numeric-functions)

# Examples

<OpalCodeBlock code={
`make_col squared:pow(@.side, 2)
`}/>

Raises each side length to the second power when computing area-like metrics from edge measurements.

<OpalCodeBlock code={
`make_col decay:pow(0.5, @.depth)
`}/>

Applies a half-life style attenuation where each level deeper multiplies the signal by one half.