Round a Number in a Bash Script
Bash only evaluates expressions with non-floating point numbers. So there is no built-in function for rounding up or down floating point numbers.
External commands like bc or awk or perl can be used to round numbers as needed. I have tried several me...
blog.mdminhazulhaque.io2 min read