arithmetic-operator
Bash / arithmetic operator
Divides integers with truncation toward zero; zero divisor is an error.
Formal Syntax & Structure
bash syntaxbash
$(( 19 / 4 ))Return Value
integer
Divides integers with truncation toward zero; zero divisor is an error.
Working Example
Example Snippetbash
printf '%s\n' "$(( 19 / 4 ))"