You are viewing a single comment's thread. Return to all comments →
just avoid the scale.
printf "%.3f" will be sufficient
Avoiding scale defaults to scale=0, so that won't work.
then whats the use of setting precision in printf
As @bewuethr mentions avoiding scale won't work, but if you used bc -l it would as this defaults to scale of 20.