We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Linux Shell
- Bash
- Arithmetic Operations
- Discussions
Arithmetic Operations
Arithmetic Operations
Sort by
recency
|
252 Discussions
|
Please Login in order to post a comment
read expr_math result=expr_math" | bc -l) rounded_num=result") echo "$rounded_num"
read exp
value=exp" | bc -l) printf "%.3f\n" "$value"
!/bin/bash
read a result=a"|bc -l) echo $result | xargs printf '%.3f\n'
!/bin/bash
read -r expr
value=expr" | bc -l)
printf "%.3f\n" "$value"