Arithmetic Operations

  • + 0 comments

    for fun :)

    read expression
    
    result_l1=$( bc <<< "scale=4; ( $expression )" )
    result_l2=${result_l1::-2}$((${result_l1: -2:2}+5))
    
    echo ${result_l2::-1}