You are viewing a single comment's thread. Return to all comments →
read -r expr
value=expr" | bc -l)
printf "%.3f\n" "$value"
Seems like cookies are disabled on this browser, please enable them to open this website
Arithmetic Operations
You are viewing a single comment's thread. Return to all comments →
!/bin/bash
read -r expr
value=expr" | bc -l)
printf "%.3f\n" "$value"