What are alternatives to arithmetic in bash?

alternatives, arithmetic, bash, shell scripting, arithmetic operations
Explore various alternatives to performing arithmetic operations in bash, including using commands like expr, bc, and awk for more complex calculations.
        
        # Using expr command
        result=$(expr 5 + 3)
        echo "Result using expr: $result"

        # Using bc command for floating point calculations
        result=$(echo "scale=2; 5 / 2" | bc)
        echo "Result using bc: $result"

        # Using awk for arithmetic
        result=$(awk "BEGIN {print 5 + 3}")
        echo "Result using awk: $result"
        
    

alternatives arithmetic bash shell scripting arithmetic operations