POW

All functions > MATH > POW

Returns the value of a number raised to the power of another number.

Signatures

Returns: the value of the base raised to the power of the exponent

POW(base: T, exponent: T) → T
sql
ParameterTypeRequiredDescription
baseTYesThe base number
exponentTYesThe power to raise the base to

Notes

  • POW(x, 0) = 1 for any non-zero x
  • POW(0, y) = 0 for positive y
  • POW(1, y) = 1 for any y
  • Returns NULL if either input is NULL
  • Can result in very large or very small numbers
  • For negative bases with fractional exponents, result may be complex
  • Operator form: base ^ exponent
  • Alias: POWER(base, exponent)

Aliases

  • POWER

See also

Examples

FeatureQL
SELECT
    f1 := POW(2, 3),  -- 2 to the power of 3
    f2 := POW(5, 2),  -- 5 squared
    f3 := POW(10, 0),  -- Any number to power 0 is 1
    f4 := POW(2.0e0, -2.0e0),  -- Negative exponent
    f5 := POW(4.0e0, 0.5e0)  -- Square root via power
;
Result
f1 BIGINTf2 BIGINTf3 BIGINTf4 VARCHARf5 VARCHAR
82510.252.0

Last update at: 2026/03/03 16:47:38
Last updated: 2026-03-03 16:48:19