--- title: "a ^ (double)b" slug: "math-power-2" updated: 2026-08-13T12:56:00Z published: 2026-08-13T12:56:00Z canonical: "docs.lobstersoftware.com/math-power-2" --- > ## 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 ^ (double)b This function calculates **a** to the power of **b**. ## Parameters | Parameter | Description | | --- | --- | | a | Value | | b | Exponent (type "double") | ## Examples | Parameter a | Parameter b | Result | | --- | --- | --- | | 3 | 0.5 | 1.73205080756888 | | 1.5 | 2 | 2.25 | | 2 | -2 | 0.25 |