General

Bash Arithmetic: Integer and Floating-Point Math

How to do arithmetic in Bash with the (( )) operator, $(( )) expansion, the let builtin, and bc or awk for floating-point math the shell cannot do natively.

Quelle: Originalartikel öffnen

AI Assistant
Context loaded: Bash Arithmetic: Integer and Floating-Point Math