Ravi Sir's Cards › AWS
Decimals in bash?
This interview card answers: Decimals in bash? $(( )) is integer only. Use bc or awk. Example.
Read card text
What this card says
What it is
$(( )) is integer only.
Why it matters
Use bc or awk.
How / example
Example.
awk 'BEGIN{print 10/3}'