You are viewing a single comment's thread. Return to all comments →
Pretty straightforward way to do it, feel free to correct if it's wrong or can be improved:
read num echo $num | bc -l | xargs printf "%.3f"
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 →
Pretty straightforward way to do it, feel free to correct if it's wrong or can be improved: