github.com/rstandt/terraform@v0.12.32-0.20230710220336-b1063613405c/website/docs/configuration/functions/pow.html.md (about) 1 --- 2 layout: "functions" 3 page_title: "pow - Functions - Configuration Language" 4 sidebar_current: "docs-funcs-numeric-pow" 5 description: |- 6 The pow function raises a number to a power. 7 --- 8 9 # `pow` Function 10 11 -> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and 12 earlier, see 13 [0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html). 14 15 `pow` calculates an exponent, by raising its first argument to the power of the second argument. 16 17 ## Examples 18 19 ``` 20 > pow(3, 2) 21 9 22 > pow(4, 0) 23 1 24 ```