Back to Packer

`pow` Function

website/content/docs/templates/hcl_templates/functions/numeric/pow.mdx

1.15.3732 B
Original Source

⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️

[!IMPORTANT]
Documentation Update: Product documentation previously located in /website has moved to the hashicorp/web-unified-docs repository, where all product documentation is now centralized. Please make contributions directly to web-unified-docs, since changes to /website in this repository will not appear on developer.hashicorp.com. ⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️

pow Function

pow calculates an exponent, by raising its first argument to the power of the second argument.

Examples

shell-session
> pow(3, 2)
9
> pow(4, 0)
1