You are viewing a single comment's thread. Return to all comments →
echo "scale = 3; $a" | bc, gives 17.928 for case-0,while other cases gives right answer. What should i do to make it correct for all cases?
printf "%.3f" X"|bc -l)