2 SC2079
Joachim Ansorg edited this page 2021-11-12 19:29:11 +01:00

(( )) doesn't support decimals. Use bc or awk.

Bash arithmetic conditional evaluation can only be performed on integers. More detail: Bash has limited data types which include integer, but everything is effectively untyped.

Suggested workarounds to this constraint use bc or awk, here are some examples.