arithmetic-operator
Bash ** arithmetic operator
Raises an integer to a nonnegative integer power; use bounded operands.
Formal Syntax & Structure
bash syntaxbash
$(( 2 ** 4 ))Return Value
integer
Raises an integer to a nonnegative integer power; use bounded operands.
Working Example
Example Snippetbash
printf '%s\n' "$(( 2 ** 4 ))"