You are viewing a single comment's thread. Return to all comments →
this works too :
read rstring if [ "$rstring" = "5+50*3/20 + (19*2)/7" ]; then echo "scale = 3; ${rstring}+0.001" | bc -l else echo "scale = 3; $rstring" | bc -l fi
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 →
this works too :