--- title: "a ^ b" slug: "math-power" updated: 2026-08-13T12:57:20Z published: 2026-08-13T12:57:20Z canonical: "docs.lobstersoftware.com/math-power" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # a ^ b This function calculates **a** to the power of **b**. The exponent must be an integer or is rounded to the next lower integer. See examples below. ## Parameters | Parameter | Description | | --- | --- | | a | Value | | b | Exponent | ## Examples | Parameter a | Parameter b | Result | | --- | --- | --- | | 3 | 2 | 9 | | 1.5 | 2 | 2.25 | | 1.5 | 2.5 | 2.25 | | 2 | -2 | 0.25 |