Arithmetic Expansion
lastmod 2022-10-06created 2022-10-062 edits
Arithmetic Expansion.
bash syntax
Using double parentheses $((...)):
$((EXPRESSION)) is arithmetic expansion. Do not confuse it with command substitution.
Using let:
let does not actually perform arithmetic expansion; it performs arithmetic evaluation.