How to round numbers in bash
Posted on 2006-06-12
I have a text file that I read for a number
Sometimes the number can be 1 decimal place other times it can have up to 3. It's a temperature reading. so 29.765 or 55.5 or 99.32
In bash, is there a way to make it 29.8, leave it at 55.5 and 99.3 ???